
/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans&display=swap');

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0A2463, #6F2DBD);
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
    transition: background 1s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    background: linear-gradient(90deg, #0A2463, #6F2DBD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

section {
    margin-bottom: 40px;
}

section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
    color: #FF9100;
}

section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    margin-top: 20px;
    color: #81E4D1;
}

p {
    font-size: 16px;
    color: #F5F5F5;
    margin-bottom: 15px;
}

pre {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 15px;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #FF9100;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #81E4D1;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #FFFFFF;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background: #6F2DBD;
}

.icon {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #6F2DBD, #0A2463);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    font-size: 24px;
    margin-bottom: 20px;
}

.button {
    background-color: #FF9100;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #E67E22;
}

.hover-effect {
    position: relative;
    overflow: hidden;
}

.hover-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 145, 0, 0.5);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: width 0.5s ease, height 0.5s ease;
}

.hover-effect:hover::before {
    width: 200%;
    height: 200%;
}

@media (max-width: 1440px) {
    header h1 {
        font-size: 32px;
    }
    section h2 {
        font-size: 26px;
    }
    section h3 {
        font-size: 20px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 30px 15px;
    }
    header h1 {
        font-size: 28px;
    }
}

@media (max-width: 1024px) {
    section h2 {
        font-size: 24px;
    }
    section h3 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    .container {
        padding: 20px 10px;
    }
    header h1 {
        font-size: 24px;
    }
    section h2 {
        font-size: 20px;
    }
    section h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }
    section h2 {
        font-size: 18px;
    }
    section h3 {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 15px 5px;
    }
    header h1 {
        font-size: 18px;
    }
    section h2 {
        font-size: 16px;
    }
    section h3 {
        font-size: 12px;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 2s ease-in-out;
}

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

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

.image-responsive {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

