
/* CSS3 样式代码 */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1A237E, #29B6F6);
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(26, 35, 126, 0.8);
    position: relative;
    overflow: hidden;
}
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 193, 7, 0.1),
        rgba(255, 193, 7, 0.1) 10px,
        transparent 10px,
        transparent 20px
    );
    animation: moveBackground 10s linear infinite;
    z-index: -1;
}
@keyframes moveBackground {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
header h1 {
    font-size: 3rem;
    background: linear-gradient(90deg, #1A237E, #29B6F6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}
header p {
    font-size: 1.2rem;
    color: #f5f5f5;
    margin-top: 10px;
}
nav {
    background: rgba(224, 224, 224, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}
nav a:hover {
    color: #FFC107;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #FFC107;
    transition: all 0.3s ease;
}
nav a:hover::after {
    width: 100%;
    left: 0;
}
main {
    flex: 1;
    padding: 20px;
    display: grid;
    gap: 40px;
}
section {
    background: rgba(224, 224, 224, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}
section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 10%, transparent 10.01%);
    transform: rotate(45deg);
    animation: rotatePattern 15s linear infinite;
    z-index: -1;
}
@keyframes rotatePattern {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
h2 {
    font-size: 2rem;
    color: #FFC107;
    margin-bottom: 20px;
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #FFC107;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}
p {
    font-size: 1rem;
    color: #f5f5f5;
    line-height: 1.8;
    margin-bottom: 20px;
}
ul, ol, table {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    text-align: left;
}
button {
    background: #FFC107;
    color: #1A237E;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
button:hover {
    background: #FFA000;
}
@media (max-width: 768px) {
    header h1 { font-size: 2rem; }
    nav a { padding: 10px; }
    section { padding: 20px; }
}

