
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #F5F7FA, #E0E0E0);
    color: #333333;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

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

a:hover {
    color: #FFA07A;
}

.container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    padding: 20px;
}

.navbar {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    position: fixed;
    height: 100%;
    width: 250px;
    top: 0;
    left: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 24px;
    color: #FFFFFF;
    margin-bottom: 30px;
}

.navbar .search-box {
    margin-bottom: 30px;
}

.navbar .search-box input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

.navbar .user-profile {
    display: flex;
    align-items: center;
}

.navbar .user-profile img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.main-content {
    margin-left: 270px;
    padding: 20px;
    background: linear-gradient(135deg, #FFFFFF, #F0F4F8);
    min-height: 100vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 32px;
    color: #333333;
}

.header .cta-button {
    background: linear-gradient(135deg, #FF8C42, #FFA07A);
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header .cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #0074D9;
}

.card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card .card-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #32CD32;
}

.card .card-description {
    font-size: 16px;
    color: #555555;
}

.code-block {
    background: rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

.code-block code {
    color: #D14;
    background: #F0F0F0;
    padding: 2px 4px;
    border-radius: 3px;
}

.article {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article h2 {
    font-size: 26px;
    color: #0074D9;
    margin-bottom: 15px;
}

.article h3 {
    font-size: 22px;
    color: #FF8C42;
    margin-top: 20px;
    margin-bottom: 10px;
}

.article p {
    font-size: 16px;
    color: #333333;
    margin-bottom: 15px;
}

.article pre {
    background: #F5F5F5;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.article ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

@media (max-width: 1440px) {
    .container {
        grid-template-columns: 200px 1fr;
    }

    .navbar {
        width: 200px;
    }

    .main-content {
        margin-left: 220px;
    }
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
    }

    .navbar {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .navbar .logo {
        margin-bottom: 0;
    }

    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 1024px) {
    .header h1 {
        font-size: 28px;
    }

    .header .cta-button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .section h2 {
        font-size: 24px;
    }

    .card .card-title {
        font-size: 18px;
    }

    .card .card-description {
        font-size: 14px;
    }

    .article h2 {
        font-size: 24px;
    }

    .article h3 {
        font-size: 20px;
    }

    .article p, .article ul {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar .search-box {
        width: 100%;
        margin-bottom: 15px;
    }

    .main-content {
        padding: 15px;
    }

    .header h1 {
        font-size: 24px;
    }

    .header .cta-button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .section h2 {
        font-size: 20px;
    }

    .card .card-title {
        font-size: 16px;
    }

    .card .card-description {
        font-size: 12px;
    }

    .article h2 {
        font-size: 22px;
    }

    .article h3 {
        font-size: 18px;
    }

    .article p, .article ul {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .navbar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 10px;
    }

    .header h1 {
        font-size: 20px;
    }

    .header .cta-button {
        padding: 5px 10px;
        font-size: 10px;
    }

    .section h2 {
        font-size: 18px;
    }

    .card .card-title {
        font-size: 14px;
    }

    .card .card-description {
        font-size: 10px;
    }

    .article h2 {
        font-size: 20px;
    }

    .article h3 {
        font-size: 16px;
    }

    .article p, .article ul {
        font-size: 10px;
    }
}

@media (max-width: 320px) {
    .header h1 {
        font-size: 18px;
    }

    .header .cta-button {
        padding: 4px 8px;
        font-size: 8px;
    }

    .section h2 {
        font-size: 16px;
    }

    .card .card-title {
        font-size: 12px;
    }

    .card .card-description {
        font-size: 8px;
    }

    .article h2 {
        font-size: 18px;
    }

    .article h3 {
        font-size: 14px;
    }

    .article p, .article ul {
        font-size: 8px;
    }
}

/* 动画效果 */
@keyframes aurora-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.aurora-background {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 提示信息 */
.reference-note {
    text-align: center;
    font-size: 14px;
    color: #888888;
    margin-top: 20px;
}

