
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(to bottom, #002f5d, #000000);
    color: #ffffff;
    overflow-x: hidden;
}

/* 头部样式 */
header {
    background: rgba(0, 47, 93, 0.8);
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin: 0;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 导航栏样式 */
nav {
    margin-top: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 10px 20px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: #ffd700;
    transform: scale(1.1);
    text-decoration: underline;
    animation: particle-effect 0.5s forwards;
}

/* 按钮样式 */
.button {
    background: linear-gradient(145deg, #ffd700, #ffa500);
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    color: #000000;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.3);
    animation: glow-effect 2s infinite;
}

/* 样式模块 */
.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 20px;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.5s, box-shadow 0.5s;
    position: relative;
}

.card:hover {
    transform: rotateY(10deg);
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

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

/* 示例展示样式 */
.demo-section {
    background: rgba(0, 47, 93, 0.9);
    padding: 40px 20px;
    border-radius: 10px;
    margin: 40px 20px;
}

.demo-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 20px;
    text-align: center;
}

.demo-section pre {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

.demo-section code {
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 1200px) {
    .section {
        padding: 50px 15px;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    nav ul li a {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    .section {
        padding: 40px 10px;
    }

    .section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .section h2 {
        font-size: 1.4rem;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav ul li a {
        font-size: 0.8rem;
    }

    .section h2 {
        font-size: 1.2rem;
    }

    .button {
        padding: 8px 16px;
        font-size: 0.7rem;
    }
}

/* 动画定义 */
@keyframes glow-effect {
    0% {
        box-shadow: 0 0 10px #ffd700;
    }
    50% {
        box-shadow: 0 0 20px #ffd700;
    }
    100% {
        box-shadow: 0 0 10px #ffd700;
    }
}

@keyframes particle-effect {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes aurora-move {
    0% {
        background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    }
    50% {
        background: radial-gradient(circle, rgb(34, 255, 87), transparent);
    }
    100% {
        background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    }
}

.aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: 1;
    pointer-events: none;
}

/* 图像布局 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-grid img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s;
}

.image-grid img:hover {
    transform: scale(1.05);
}

/* 代码块样式 */
.code-block {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-block code {
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ffffff;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background: #ffd700;
    color: #000000;
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

/* 装饰性光晕 */
.golden-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.8), transparent);
    animation: glow-effect 5s infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 页脚样式 */
footer {
    background: rgba(0, 47, 93, 0.8);
    padding: 20px;
    text-align: center;
    color: #ffffff;
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
}

