:root {
    --primary-color: #2c2c2c;
    --secondary-color: #4a4a4a;
    --accent-color: #cdcdcd;
    --text-color: #e0e0e0;
    --bg-color: #1a1a1a;
    --card-bg: #252525;
    --border-radius: 50px;
    --card-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --nav-height: 60px;
    --nav-padding: 2rem;
}

.light-mode {
    --primary-color: #f0f0f0;
    --secondary-color: #e0e0e0;
    --accent-color: #666666;
    --text-color: #333333;
    --bg-color: #f8f8f8;
    --card-bg: #ffffff;
}

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

body {
    font-family: 'MiSans ExtraLight', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.5s ease, color 0.5s ease;
}

a{
    color:#899
}

.navbar {
    display: flex;
    align-items: center;
    padding: 1rem var(--nav-padding);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 2.5rem;
    z-index: 100;
    border-bottom: 1px solid var(--secondary-color);
    margin: 0 auto;
    max-width: 800px;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: var(--nav-height);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
    margin-bottom: 6.5rem;
    transition: all 0.5s ease;
}

.light-mode .navbar {
    background-color: rgba(240, 240, 240, 0.8);
    border-bottom-color: var(--secondary-color);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    background-color: rgba(60, 60, 60, 0.5);
    border-radius: calc(var(--border-radius) / 2);
    padding: 0.8rem 1.2rem;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    height: calc(var(--nav-height) - 1.6rem);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    font-size: 1.1rem;
    font-weight: 500;
}

.light-mode .nav-item {
    background-color: rgba(200, 200, 200, 0.6);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    background-color: rgba(80, 80, 80, 0.8);
}

.light-mode .nav-item:hover {
    background-color: rgba(180, 180, 180, 0.8);
}

.nav-item:active {
    transform: translateY(0);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    margin-right: 12px;
    overflow: hidden;
    flex-shrink: 0;
    transition: var(--transition);
    border: 2px solid var(--text-color);
}

.light-mode .logo {
    border-color: var(--text-color);
}

.logo:hover {
    transform: scale(1.1);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    transition: var(--transition);
    text-decoration: none;
}

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

.light-mode .nav-title:hover {
    color: #007acc;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.light-mode .nav-link:hover {
    color: #007acc;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(60, 60, 60, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    margin-left: auto;
    flex-shrink: 0;
    position: relative;
    border: 2px solid var(--text-color);
}

.light-mode .theme-toggle {
    background-color: rgba(200, 200, 200, 0.6);
    border-color: var(--text-color);
}

.theme-toggle:hover {
    transform: rotate(15deg);
    background-color: rgba(80, 80, 80, 0.8);
}

.light-mode .theme-toggle:hover {
    background-color: rgba(180, 180, 180, 0.8);
}

.theme-toggle:active {
    transform: rotate(0deg) scale(0.95);
}

.theme-icon {
    font-size: 1.4rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    transition: all 0.5s ease;
}

#main {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    margin-top: 0;
}

.article-card {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--secondary-color);
    min-height: 300px;
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
}

.light-mode .article-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

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

.light-mode .article-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.article-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: var(--transition);
}

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

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.7) 50%, rgba(26, 26, 26, 0.5) 100%);
    z-index: 2;
}

.light-mode .article-overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.5) 100%);
}

.article-content {
    position: relative;
    z-index: 3;
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.6rem;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.light-mode .article-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-excerpt {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 2.2rem;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.light-mode .article-excerpt {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.article-meta {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--accent-color);
    gap: 1.4rem;
}

.light-mode .article-meta {
    color: #666666;
}

@media (max-width: 768px) {
    .navbar {
        top: 2rem;
        padding: 0.8rem 1.5rem;
        gap: 1rem;
        margin-bottom: 5rem;
    }

    .nav-item {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }

    .logo {
        width: 36px;
        height: 36px;
    }

    .nav-title {
        font-size: 1.4rem;
    }

    .nav-link {
        font-size: 1rem;
    }

    .theme-toggle {
        width: 45px;
        height: 45px;
    }

    .theme-icon {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .article-card {
        min-height: 280px;
    }

    .article-content {
        padding: 2rem;
    }

    .article-title {
        font-size: 1.7rem;
    }

    .article-excerpt {
        font-size: 1.1rem;
        margin-bottom: 1.8rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        top: 1.8rem;
        padding: 0.7rem 1.2rem;
        gap: 0.8rem;
        margin-bottom: 4.5rem;
    }

    .nav-item {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }

    .logo {
        width: 32px;
        height: 32px;
    }

    .nav-title {
        font-size: 1.3rem;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .theme-icon {
        font-size: 1.2rem;
    }

    .article-card {
        min-height: 260px;
    }

    .article-content {
        padding: 1.8rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-excerpt {
        font-size: 1rem;
        margin-bottom: 1.6rem;
    }
}


/*
以下是自己编写的
*/

img{
    border-radius: 8px;
    box-shadow: 0px 0px 1px 2px rgba(0, 0, 0, 0.5);
}
video{
    border-radius: 8px;
    box-shadow: 0px 0px  4px 2px rgba(0, 0, 0, 0.5);
}
