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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
    background: linear-gradient(135deg, #0A2463, #1B3A5B);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-attachment: fixed;
}

header {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    background: rgba(10, 36, 99, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-bottom: 30px;
}

header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #FFA726;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav {
    margin-top: 15px;
}

nav a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #FFA726;
    left: 50%;
    bottom: -5px;
    transition: width 0.3s ease, left 0.3s ease;
}

nav a:hover {
    color: #FFA726;
}

nav a:hover::after {
    width: 100%;
    left: 0;
}

main {
    width: 100%;
    max-width: 1200px;
}

.section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

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

.section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.article-demo {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.article-demo h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: #FFA726;
    margin-bottom: 15px;
}

.article-demo p {
    font-size: 1rem;
    line-height: 1.6;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.article-demo pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.article-demo code {
    color: #FFA726;
    font-family: 'Courier New', Courier, monospace;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #C0C0C0;
}

table th {
    background: #0A2463;
    color: #FFA726;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #FFA726;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.button:hover {
    background: #FFB74D;
}

.button::before {
    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%);
    transition: all 0.3s ease-out;
}

.button:hover::before {
    width: 200%;
    height: 200%;
}

footer {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    background: rgba(10, 36, 99, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-top: 30px;
}

footer p {
    color: #FFFFFF;
    font-size: 0.9rem;
}

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

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

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

    header h1 {
        font-size: 2rem;
    }

    nav a {
        margin: 0 10px;
    }
}

@media (max-width: 1024px) {
    .section {
        padding: 20px;
    }

    header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 10px 0;
    }

    .section {
        padding: 15px;
    }

    .article-demo h2 {
        font-size: 1.6rem;
    }

    .button {
        width: 100%;
        text-align: center;
    }
}

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

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

    .article-demo h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 320px) {
    body {
        padding: 10px;
    }

    .section {
        padding: 10px;
    }

    nav a {
        font-size: 0.9rem;
    }

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

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

body {
    background: linear-gradient(-45deg, #0A2463, #1B3A5B, #0A2463, #1B3A5B);
    background-size: 400% 400%;
    animation: aurora-move 15s linear infinite;
}

/* 卡片模块 */
.card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

/* 图文并茂样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.image-gallery img {
    width: 100%;
    max-width: 320px;
    border-radius: 8px;
    object-fit: cover;
}

/* 响应式网格 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 按钮微交互 */
.button {
    position: relative;
    overflow: hidden;
}

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

.button:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

