body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    padding: 0;
    z-index: 10;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4CAF50;
}

header h1 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #4CAF50;
}

nav {
    background-color: #ff0000;
    color: white;
    text-align: center;
    padding: 20px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

nav ul li {
    display: inline-block;
    margin: 0;
}

nav a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    display: inline-block;
    padding: 7px 12px;
    border-radius: 24px;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

nav a:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

nav ul li:nth-child(1) a { background-color: #ffffff; }
nav ul li:nth-child(2) a { background-color: #ffffff; }
nav ul li:nth-child(3) a { background-color: #ffffff; }
nav ul li:nth-child(4) a { background-color: #ffffff; }
nav ul li:nth-child(5) a { background-color: #ffffff; }
nav ul li:nth-child(6) a { background-color: #ffffff; }

main {
    width: min(1200px, calc(100% - 48px));
    margin: 20px auto;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 0 16px rgba(0,0,0,0.08);
    flex: 1;
}

article {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: start;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background-color: #fafafa;
}

article h3,
article p,
article time {
    margin: 0 0 12px;
}

.thumbnail {
    width: 100%;
    min-width: 180px;
    aspect-ratio: 16 / 9;
    background-color: #ccc;
    border-radius: 10px;
    object-fit: cover;
}

footer {
    text-align: center;
    padding: 5px;
    background-color: #4c74af;
    color: white;
    font-size: 12px;
}

#typing-effect {
    text-align: center;
    padding: 20px;
    font-size: 96px;
    font-family: "KaiTi", "楷体", serif;
    font-weight: bold;
    background-color: white;
    margin: 20px auto;
    max-width: min(1200px, calc(100% - 48px));
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#typing-effect p {
    display: inline-block;
    margin: 0;
    position: relative;
}

#typing-effect p::after {
    content: "|";
    display: inline-block;
    margin-left: 6px;
    color: #333;
    animation: blinkCursor 0.8s steps(2) infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@media (max-width: 860px) {
    main {
        width: calc(100% - 32px);
        padding: 20px;
    }

    article {
        grid-template-columns: 1fr;
    }

    .thumbnail {
        min-width: auto;
        aspect-ratio: unset;
        height: 200px;
    }
}
