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

/* 全局字体与颜色 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0000FF, #8A2BE2, #FFA500);
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
    transition: background 1s ease-in-out;
}

/* 响应式布局 */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
}

/* 模块样式 */
.module {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #00FF00;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
}

/* 标题样式 */
h1, h2, h3, h4 {
    background: linear-gradient(90deg, #00FFFF, #FF00FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* 段落与列表 */
p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #FFFFFF;
}

ol, ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 10px;
}

/* 链接样式 */
a {
    color: #00FFFF;
    text-decoration: none;
    position: relative;
}

a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #00FFFF;
    transition: width 0.3s;
}

a:hover::after {
    width: 100%;
}

/* 按钮样式 */
button {
    background: linear-gradient(90deg, #00FFFF, #FF00FF);
    border: none;
    padding: 10px 20px;
    color: #000;
    border-radius: 25px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

button:hover {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
}

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

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

code {
    color: #00FF00;
    font-family: 'Courier New', Courier, monospace;
}

/* 响应式调整 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.3rem;
    }
    h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 40px;
    }
}

@media (min-width: 1440px) {
    h1 {
        font-size: 3.5rem;
    }
    h2 {
        font-size: 2.5rem;
    }
}

/* 动态背景粒子 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    opacity: 0.3;
    animation: float 10s infinite linear;
    z-index: -1;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-50px); }
    100% { transform: translateY(0); }
}

/* 流动光环效果 */
.button-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0,255,255,0.4), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

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

/* 蜂窝网格背景 */
.honeycomb {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    background: linear-gradient(45deg, #00FFFF, #FF00FF);
    padding: 20px;
    border-radius: 10px;
}

.honeycomb div {
    background: rgba(255, 255, 255, 0.2);
    padding-top: 100%;
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.honeycomb div::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: rgba(0, 255, 255, 0.5);
    border-radius: 5px;
}

