* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('https://api.yppp.net/api.php');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: "华文楷书", "华文楷体", "楷体", "KaiTi", "Microsoft YaHei", serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 模糊背景层 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://api.yppp.net/api.php') no-repeat center center fixed;
    background-size: cover;
    filter: blur(3px);
    z-index: -1;
}

.main-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#web {
    color: rgb(0, 0, 0);
    text-shadow: 2px 2px 4px #ffffff;
    text-align: center;
    margin: 0;
    align-self: center;
}

.post-content {
    margin-top: 2rem;
    max-width: 800px;
    width: 100%;
}

.post-item {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
    text-shadow: 0 0 2px rgba(255,255,255,0.5);
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
}

.post-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #2c3e2f;
}

.post-item p {
    margin-bottom: 0.5rem;
}

.post-item:last-child {
    margin-bottom: 0;
}

.intro {
    position: fixed;
    top: 1rem;
    right: 1rem;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: right;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 0.6rem 1rem;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 280px;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.intro:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: scale(1.02);
}

a {
    text-decoration: none;
}

.footer-link {
    color: black;
    text-shadow: none;
    text-align: center;
    margin: 0;
}

footer {
    text-align: center;
    padding: 1.5rem;
}

.custom-alert {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.alert-box {
    background: rgba(30,30,40,0.95);
    backdrop-filter: blur(12px);
    width: 90%;
    max-width: 380px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    color: #eee;
    border-radius: 0;
    overflow: hidden;
}

.alert-header {
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-header .close-alert {
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    color: #ccc;
}

.alert-header .close-alert:hover {
    color: #ffaa66;
}

.alert-content {
    padding: 1.2rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
}

.alert-footer {
    padding: 0.8rem 1rem;
    text-align: right;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.alert-footer button {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 0.4rem 1.2rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
    border-radius: 0;
}

.alert-footer button:hover {
    background: rgba(255,255,255,0.4);
}

#mouseCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 640px) {
    .intro {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        max-width: 220px;
    }
    .alert-content {
        font-size: 0.9rem;
    }
    .post-content {
        margin-top: 1rem;
    }
    .post-item {
        padding: 0.8rem 1rem;
    }
}