:root {
    --primary: #00b4d8;
    --secondary: #90e0ef;
    --background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --background-brightness: 0.8;
    --background-img: '';
}

body {
    font-family: 'Microsoft Yahei', Arial, sans-serif;
    background: var(--background);
    color: #fff;
    min-height: 100vh;
    margin: 0;
    padding: 80px 2rem 2rem;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--background-img) center/cover fixed no-repeat;
    filter: brightness(var(--background-brightness));
    transition: background-image 0.8s ease-in-out;
}

.module-header {
    display: flex;
    align-items: center;
}

.module-header .download-btn,
.module-header .check-btn {
    display: inline-block;
    margin-left: auto;
}

.download-btn {
    display: inline-block;
    margin-left: 20px;
    padding: 6px 5px;
    background: rgba(78, 93, 96, 0.3);
    border: 2px solid var(--primary);
    border-radius: 20px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: rgba(0, 180, 216, 0.5);
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.3);
    transform: translateY(-2px);
}

.check-btn {
    display: inline-block;
    margin-left: 20px;
    padding: 6px 5px;
    background: rgba(78, 93, 96, 0.3);
    border: 2px solid #ffb7b7;
    border-radius: 20px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.check-btn:hover {
    background: rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 15px rgb(255, 132, 132);
    transform: translateY(-2px);
}

.icon {
    margin-bottom: -10px;
    margin-right: 10px;
    width: 50px;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.module {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px) saturate(180%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

h1, h2 {
    color: var(--primary);
}

h1 span, h2 span {
    display: inline-block;
    transition: transform 1s;
}

h1 span:hover, h2 span:hover {
    transform: rotate(360deg);
}

h2 {
    color: var(--secondary);
    font-size: 1.3em;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    padding: 0.8rem;
    margin: 0.5rem 0;
    background: rgba(0, 180, 216, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 3px;
}

pre[class*="language-"] {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

pre[class*="language-"]:hover {
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.2);
}

.copy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 180, 216, 0.9);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.copy-toast.show {
    opacity: 1;
}

footer {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

footer a {
    color: #00d2ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #90e0ef;
    text-shadow: 0 0 8px rgba(144, 224, 239, 0.3);
}

footer img {
    filter: brightness(1.2);
}

.link-text {
    font-weight: 500;
    font-size: 13px;
    color: white;
}

.footer-info p {
    margin: 0.5rem 0;
}

.friend-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.friend-link:hover {
    color: #90e0ef;
    text-shadow: 0 0 8px rgba(144, 224, 239, 0.3);
}

.friend-link .link-icon {
    border-radius: 10px;
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

#pure-mode-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px;
    transition: all 0.3s ease;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
}

#pure-mode-btn:hover {
    transform: scale(1.05);
}

#pure-mode-btn img {
    margin-top: 10px;
    margin-left: 10px;
    width: 70px;
}

@media (max-width: 480px) {
    body {
        padding: 50px 0.8rem 0.8rem;
        font-size: 14px;
    }

    body::before {
        background-attachment: scroll;
    }

    h1 {
        font-size: 1.4rem;
        margin: 1rem 0;
    }

    h2 {
        font-size: 1.1rem;
        margin: 0.8rem 0;
    }

    li {
        padding: 0.6rem;
        font-size: 0.9em;
    }

    pre[class*="language-"] {
        padding: 1rem;
        white-space: pre-wrap;
        word-wrap: break-word;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    footer {
        background: rgba(0, 0, 0, 0.5);
        font-size: 0.85em;
        padding: 0.8rem;
    }

    footer a {
        font-size: 0.95em;
    }

    ::-webkit-scrollbar {
        display: none;
    }

    pre[class*="language-"] {
        -webkit-tap-highlight-color: transparent;
    }
}
