
/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #000046, #1cb5e0);
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    overflow-x: hidden;
}

/* 文字和标题样式 */
h1, h2, h3, h4, h5, h6 {
    color: #ff00bf;
    text-shadow: 0 0 10px #ff00bf, 0 0 20px #ff00bf;
}

h1 {
    font-size: 48px;
    background: -webkit-linear-gradient(left, #ff00bf, #00ff99);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

h3 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 15px;
}

p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #e0e0e0;
}

strong {
    color: #00ff99;
}

/* 链接样式 */
a {
    color: #ff00bf;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00ff99;
    text-shadow: 0 0 5px #00ff99;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff00bf;
}

.navbar .nav-links a {
    margin-left: 20px;
    font-size: 16px;
    position: relative;
}

.navbar .nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #00ff99;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

.navbar .nav-links a:hover::after {
    width: 100%;
}

/* 主容器样式 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px auto;
    padding: 20px;
}

/* 模块样式 */
.section {
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h4 {
    margin-bottom: 10px;
    color: #00ff99;
}

.card p {
    font-size: 14px;
    color: #cccccc;
}

/* 按钮样式 */
.button {
    position: relative;
    background: #ff00bf;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s, transform 0.3s;
    overflow: hidden;
}

.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 0, 191, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    opacity: 0;
}

.button:hover::after {
    width: 200px;
    height: 200px;
    opacity: 1;
}

.button:hover {
    background: #00ff99;
    transform: scale(1.05);
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

code {
    color: #ff00bf;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 320px) {
    h1 {
        font-size: 32px;
    }
    .navbar .nav-links a {
        font-size: 14px;
    }
    .card h4 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 36px;
    }
    .navbar .nav-links a {
        font-size: 15px;
    }
    .card h4 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .section-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 30px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }
    .button {
        font-size: 15px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    .section-title h2 {
        font-size: 34px;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    h1 {
        font-size: 56px;
    }
    h2 {
        font-size: 40px;
    }
}

/* 动态背景效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
}

/* 提示信息样式 */
.reference-note {
    text-align: center;
    font-size: 18px;
    color: #ff00bf;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #00ff99;
}

/* 图片旋转与偏移 */
.rotated-image {
    transform: rotate(5deg);
}

.offset-image {
    margin-top: 20px;
}

/* 滚动效果 */
.section {
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: rgba(0, 255, 255, 0.1);
    transform: skewX(-20deg);
    animation: move-background 10s linear infinite;
    z-index: -1;
}

@keyframes move-background {
    0% { transform: translateX(-100%) skewX(-20deg); }
    100% { transform: translateX(100%) skewX(-20deg); }
}

