
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: #ff69b4;
    text-decoration: none;
}
a[rel="nofollow"] {
    cursor: default;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
    font-size: 1rem;
}

pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}
code {
    font-family: 'Courier New', Courier, monospace;
    color: #00ffff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #5e17eb, #ff6ec4);
    border-bottom: 2px solid #ffffff;
}
.header h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(32, 58, 67, 0.9);
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}
.navbar li {
    margin: 0 15px;
}
.navbar a {
    color: #ffffff;
    font-size: 1rem;
    transition: color 0.3s;
}
.navbar a:hover {
    color: #ff6ec4;
}

.section {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c5364, #203a43);
}
.section:nth-child(even) {
    background: linear-gradient(135deg, #203a43, #0f2027);
}
.section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
}
.section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #ff6ec4;
    margin: 10px auto 0;
    border-radius: 2px;
}

.article {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.article h2, .article h3, .article h4 {
    color: #ff6ec4;
}
.article pre {
    background: rgba(0, 0, 0, 0.8);
    border-left: 5px solid #ff6ec4;
}
.article code {
    color: #00ffff;
}
.article img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

.footer {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #5e17eb, #ff6ec4);
    color: #ffffff;
    position: relative;
}
.footer p {
    margin: 0;
    font-size: 1rem;
}

/* 按钮样式 */
.button {
    position: relative;
    padding: 12px 25px;
    background: #ff69b4;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.3s;
    font-size: 1rem;
}
.button:hover {
    background: #e63946;
}
.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}
.button:hover::after {
    animation: ripple 1s ease-out forwards;
    width: 200px;
    height: 200px;
}
@keyframes ripple {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* 视差滚动 */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .header h1 {
        font-size: 2.2rem;
    }
}
@media (max-width: 1200px) {
    .navbar ul {
        flex-wrap: wrap;
    }
    .navbar li {
        margin: 10px;
    }
}
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }
}
@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }
    .section h2 {
        font-size: 1.8rem;
    }
    .navbar ul {
        flex-direction: column;
    }
    .navbar li {
        margin: 10px 0;
    }
}
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    .section h2 {
        font-size: 1.5rem;
    }
    .article pre {
        font-size: 0.9rem;
    }
}
@media (max-width: 320px) {
    .header h1 {
        font-size: 1.5rem;
    }
    .section {
        padding: 60px 0;
    }
    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

