
/* 极光幻境：数码时代的元宇宙视觉盛宴 样式表 */

/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Roboto+Mono&display=swap');

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #8e44ad, #3498db, #2ecc71);
    background-size: 300% 300%;
    animation: gradientAnimation 10s ease infinite;
    color: #ecf0f1;
    line-height: 1.6;
    padding: 20px;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 容器布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: #f1c40f;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

/* 段落样式 */
p {
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    color: #ecf0f1;
    margin-bottom: 20px;
    padding: 0 10px;
}

/* 链接样式 */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 按钮样式 */
.button {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #2980b9;
}

.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;
    transition: all 0.4s ease;
}

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

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

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

th {
    background-color: #34495e;
    color: #ecf0f1;
}

tr:nth-child(even) {
    background-color: #2c3e50;
}

/* 代码块样式 */
pre {
    background-color: #1e272e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    font-family: 'Roboto Mono', monospace;
    color: #dcdde1;
}

/* 图片样式 */
img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    margin: 10px;
}

/* 模块化布局 */
.section {
    margin-bottom: 50px;
}

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

.card:hover {
    transform: translateY(-10px);
}

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

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

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 1024px) {
    h3 {
        font-size: 1.75rem;
    }

    .card {
        margin-bottom: 20px;
    }
}

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

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .button {
        padding: 8px 16px;
    }
}

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

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 0.9rem;
    }

    table, th, td {
        font-size: 0.9rem;
    }
}

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

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    .button {
        padding: 6px 12px;
    }
}

/* 额外的视觉效果 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('https://images.gptkong.com/demo/sample1.png') center center / cover no-repeat;
    opacity: 0.3;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

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

/* 按钮点击时的能量波扩散 */
@keyframes ripple {
    from {
        transform: scale(0);
        opacity: 0.5;
    }
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s, opacity 1s;
}

.ripple-effect:active::after {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

