
/* 全局样式与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A192F, #000);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #FF9F1C;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

a {
    color: #FF9F1C;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFD700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* 标题与视觉提示 */
header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(45deg, #0A192F, #1E3A8A);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    color: #FF9F1C;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 159, 28, 0.3) 10%, transparent 70%);
    transform: rotate(45deg);
    animation: rotateHeader 10s linear infinite;
}

@keyframes rotateHeader {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 图片装饰样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

/* 按钮样式 */
button {
    background: linear-gradient(90deg, #0A192F, #1E3A8A);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

button:hover {
    transform: scale(1.1);
    background: #FF9F1C;
    color: #000;
}

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

code {
    color: #FFD700;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

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

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

th {
    background: #1E3A8A;
    color: #FFD700;
}

td {
    color: #ccc;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 2rem;
    }

    pre {
        font-size: 0.8rem;
    }
}

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

    p {
        font-size: 0.9rem;
    }

    button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

