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

body {
    background: linear-gradient(135deg, #00264d, #3c0f7b);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    text-align: center;
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

header h1 {
    font-size: 3rem;
    background: linear-gradient(90deg, #ff9e00, #ff4a00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.notice {
    text-align: center;
    font-size: 1.2rem;
    margin: 20px 0;
    color: #ffcc00;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.article-container h2,
.article-container h3 {
    color: #ffffff;
    margin-bottom: 20px;
}

.article-container h2 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.article-container h3 {
    font-size: 2rem;
    margin-top: 30px;
    position: relative;
    padding-left: 10px;
}

.article-container h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background: #ff4a00;
    border-radius: 3px;
}

.article-container p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.article-container pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

.article-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.article-container th,
.article-container td {
    border: 1px solid #555;
    padding: 10px;
    text-align: left;
}

.article-container th {
    background: #3c0f7b;
    color: #ffcc00;
}

.article-container tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.images-grid img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

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

    .article-container h2 {
        font-size: 2rem;
    }

    .article-container h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .images-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .article-container p, 
    .article-container pre,
    .article-container table {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 40px 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    .article-container {
        padding: 20px;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

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

    .article-container h2 {
        font-size: 1.8rem;
    }

    .article-container h3 {
        font-size: 1.3rem;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
}

@media (max-width: 480px) {
    header {
        padding: 30px 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .article-container h2 {
        font-size: 1.5rem;
    }

    .article-container h3 {
        font-size: 1.1rem;
    }

    .images-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 320px) {
    .article-container {
        padding: 15px;
    }

    .article-container p, 
    .article-container pre,
    .article-container table {
        font-size: 0.9rem;
    }
}

/* 按钮样式 */
button {
    padding: 10px 20px;
    background: #ff4a00;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
    font-size: 1rem;
}

button:hover {
    background: #ff9e00;
    transform: translateY(-2px);
}

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%);
    opacity: 0;
    transition: all 0.3s ease;
}

button:active::before {
    width: 200px;
    height: 200px;
    opacity: 1;
}

/* 动态粒子背景 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    background: transparent;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 10s infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(100vw);
        opacity: 0;
    }
}

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

/* 卡片翻转动画 */
.card {
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    padding-top: 75%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
}

.card-front {
    background: #3c0f7b;
}

.card-back {
    background: #ff4a00;
    transform: rotateY(180deg);
}

/* 表格响应 */
@media (max-width: 600px) {
    .article-container table, 
    .article-container th, 
    .article-container td {
        display: block;
        width: 100%;
    }

    .article-container th {
        text-align: right;
        padding-right: 50%;
        position: relative;
    }

    .article-container th::after {
        content: ":";
        position: absolute;
        right: 10px;
    }

    .article-container td {
        text-align: left;
        padding-left: 50%;
        margin-bottom: 10px;
    }
}

