
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: #333;
    line-height: 1.6;
}

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

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: radial-gradient(circle, rgba(255,87,34,0.3), transparent);
    animation: aurora-move 15s linear infinite;
}

header h1 {
    font-size: 2.5em;
    color: #FF69B4;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

/* 导航栏 */
nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 1.1em;
    position: relative;
}

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

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

nav a[rel="nofollow"] {
    /* 内部链接添加nofollow属性 */
}

/* 主内容 */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 文章区 */
.article {
    flex: 2;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.article h2 {
    color: #6A5ACD;
    margin-bottom: 20px;
}

.article pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

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

/* 示例展示 */
.example-display {
    flex: 1;
    background: rgba(240, 248, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.example-display h3 {
    color: #20B2AA;
    margin-bottom: 15px;
}

.example-display ul {
    list-style: none;
    padding: 0;
}

.example-display li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.example-display li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #20B2AA;
}

.example-display img {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

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

/* 按钮样式 */
button {
    background-color: #FF69B4;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

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: width 0.3s ease, height 0.3s ease;
}

button:hover {
    transform: scale(1.1);
}

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

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

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

table th {
    background-color: #f2f2f2;
}

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

@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }
}

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

@media (max-width: 480px) {
    nav a {
        font-size: 1em;
    }
}

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