
/* 全局样式与页面背景 */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #000046, #1cb5e0);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 提示信息样式 */
.notice {
    text-align: center;
    font-size: 14px;
    color: #ffcc00;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

/* 主容器样式 */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 标题样式 */
h1 {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* 文章标题与段落样式 */
article h2 {
    font-size: 28px;
    color: #ffcc00;
    margin-top: 40px;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 10px;
}

article p {
    font-size: 16px;
    color: #d4d4d4;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    color: #ffffff;
    margin: 20px 0;
}

code {
    color: #ffcc00;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

th {
    background: rgba(0, 0, 0, 0.3);
    color: #ffcc00;
}

td {
    color: #d4d4d4;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(90deg, #ffcc00, #ff6f61);
    color: #000000;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* 动态线条效果 */
.dynamic-line {
    position: absolute;
    width: 200px;
    height: 2px;
    background-color: #ffcc00;
    animation: moveLine 5s infinite;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    h1 { font-size: 28px; }
    article h2 { font-size: 24px; }
    pre { font-size: 12px; }
    .container { padding: 0 10px; }
}

@media (max-width: 480px) {
    h1 { font-size: 24px; }
    article h2 { font-size: 20px; }
    table { font-size: 12px; }
}

