
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: #00FFFF;
    text-shadow: 0 0 10px #00FFFF, 0 0 20px #00FFFF, 0 0 30px #00FFFF;
}

h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5em;
    margin-top: 40px;
    margin-bottom: 15px;
}

h3 {
    font-size: 2em;
    margin-top: 30px;
    margin-bottom: 10px;
}

p {
    font-size: 1em;
    margin-bottom: 15px;
    color: #ecf0f1;
}

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

a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #FF69B4;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* 按钮样式 */
.button {
    position: relative;
    background: #00FFFF;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    border-radius: 5px;
    margin: 10px 0;
}

.button:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    animation: glow 1s infinite;
}

@keyframes glow {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ffffff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    border-radius: 10px;
    margin-bottom: 20px;
}

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

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00FF00;
    margin-bottom: 20px;
}

code {
    font-size: 0.9em;
}

/* 网格布局 */
.container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

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

.background-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,87,34,0.8), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

/* 交互元素 */
.button-primary {
    background: linear-gradient(45deg, #FF69B4, #00FFFF);
    box-shadow: 0 0 10px #FF69B4, 0 0 20px #00FFFF;
}

.button-primary:hover {
    transform: scale(1.05);
}

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

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

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

@media (max-width: 768px) {
    h2 {
        font-size: 2em;
    }
    h3 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.5em;
    }
    .button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

/* 图标样式 */
.icon {
    width: 50px;
    height: 50px;
    fill: #00FFFF;
    stroke: #ffffff;
    stroke-width: 2px;
    filter: drop-shadow(0 0 10px #00FFFF);
}

/* 提示样式 */
.notice {
    background: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #FF69B4;
    padding: 10px 20px;
    margin: 20px 0;
    border-radius: 5px;
}

/* 示例展示 */
.example-display {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}

.example-display h2 {
    color: #FF69B4;
}

.example-display pre {
    background: rgba(255, 255, 255, 0.1);
    color: #00FF00;
}

/* 按钮动画 */
.button-animated {
    position: relative;
    overflow: hidden;
}

.button-animated::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 0;
}

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

.button-animated span {
    position: relative;
    z-index: 1;
}

/* 动态粒子效果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: transparent;
    pointer-events: none;
}

