
/* 基本重置与通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    font-family: 'Roboto', sans-serif;
    color: #333333;
    line-height: 1.6;
    transition: background 0.5s ease;
    animation: backgroundChange 15s linear infinite;
}

@keyframes backgroundChange {
    0% {
        background: linear-gradient(135deg, #4568DC, #B06AB3);
    }
    50% {
        background: linear-gradient(135deg, #B06AB3, #FFA726);
    }
    100% {
        background: linear-gradient(135deg, #FFA726, #4568DC);
    }
}

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

header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #4568DC, #B06AB3);
    color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    animation: fadeInDown 1s ease-out;
}

header p {
    font-size: 1.2em;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav {
    margin: 20px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 1em;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.section {
    margin: 40px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    padding-bottom: 10px;
    animation: slideInLeft 1s ease-out;
}

.section p {
    font-size: 1em;
    color: #EFEFEF;
    margin-bottom: 20px;
    animation: slideInRight 1s ease-out;
}

.section pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

.section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    animation: zoomIn 1s ease-out;
}

.footer {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #B06AB3, #4568DC);
    color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.footer p {
    font-size: 1em;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

    nav ul li a {
        font-size: 0.9em;
        padding: 8px 16px;
    }

    .section h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }

    header h1 {
        font-size: 2.2em;
    }

    .section h2 {
        font-size: 1.6em;
    }
}

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

    nav ul li {
        margin: 10px 0;
    }

    .section {
        padding: 15px;
    }
}

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

    .section h2 {
        font-size: 1.4em;
    }

    nav ul li a {
        font-size: 0.8em;
        padding: 6px 12px;
    }
}

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

    .section h2 {
        font-size: 1.2em;
    }

    nav ul li a {
        font-size: 0.7em;
        padding: 5px 10px;
    }
}

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

    .section h2 {
        font-size: 1em;
    }

    nav ul li a {
        font-size: 0.6em;
        padding: 4px 8px;
    }
}

/* 按钮样式与交互动效 */
button {
    background-color: #FFA726;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0;
}

button:hover {
    background-color: #FF7043;
    transform: scale(1.1);
}

/* 链接样式 */
a {
    color: #FFEB3B;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFFFFF;
}

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

/* 代码块样式 */
.code-block {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-block pre {
    margin: 0;
}

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

/* 图片动画与布局 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
}

/* 数据可视化样式 */
.chart {
    perspective: 1000px;
    margin: 20px 0;
}

.chart .item {
    position: relative;
    width: 150px;
    height: 150px;
    background-color: #2196F3;
    transform-style: preserve-3d;
    animation: rotate 5s infinite linear;
    border-radius: 10px;
}

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

/* 动态欢迎语样式 */
.welcome-message {
    font-size: 1.2em;
    color: #FFEB3B;
    margin: 20px 0;
    text-align: center;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 分隔线样式 */
.separator {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 30px 0;
}

