/* 全局样式 */ 
.container {
    min-width: 1200px;  
    background-color: rgba(0, 0, 0, 0.1) ;
}

/* 头部样式 */
header.header {
    background: linear-gradient(to right, #00cc99, #00ffcc); /* 渐变青色 */
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 3px solid #00cc99;
    border-radius: 10px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header.header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #822b85;
    text-transform: uppercase;
    font-weight: 700;
}

header.header p {
    margin: 10px 0 0;
    color: #1a1f2e;
    font-size: 1.1em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

header.header a {
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
}

header.header a:hover {
    color: #00ffcc;
    text-decoration: underline;
}

/* 导航样式 */
nav.nav {
    background-color: #2a3b5a;
    padding: 1rem;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav.nav h2 {
    margin: 0 0 10px;
    color: #00ffcc;
    font-size: 1.5em;
    font-weight: 600;
    text-align: center;
}

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

nav.nav ul li {
    margin: 0 15px 10px;
}

nav.nav ul li a {
    color: #00ffcc;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

nav.nav ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* 主内容样式 */
main {
    padding: 20px 0;
}

section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #2a3b5a;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

section h2 {
    color: #00ffcc;
    font-size: 2em;
    font-weight: 700;
    margin-top: 0;
    border-bottom: 2px solid #00cc99;
    padding-bottom: 5px;
}

section h3 {
    color: #00cc99;
    font-size: 1.5em;
    font-weight: 600;
    margin: 15px 0 10px;
}

section p {
    color: #d3d3d3;
    margin: 10px 0;
}

section p a{
    color: yellow;
    margin: 10px 0;
}

section ul, section ol {
    padding-left: 20px;
    color: #d3d3d3;
}

section ul li, section ol li {
    margin: 8px 0;
}

section ul li a, section ol li a {
    color: #00ffcc;
    text-decoration: none;
    font-weight: 500;
}

section ul li a:hover, section ol li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* 底部样式 */
footer {
    background-color: #2a3b5a;
    text-align: center;
    padding: 1rem;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
    color: #00ffcc;
    font-size: 0.9em;
}

footer a {
    color: #00ffcc;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* 响应式设计 - 手机端（宽度 ≤ 768px） */
@media (max-width: 768px) {
    .container {
        min-width: 100%; /* 适配小屏幕 */
        padding: 0 10px;
    }

    header.header {
        padding: 1rem;
        margin: 10px 0;
        border-radius: 8px;
    }

    header.header h1 {
        font-size: 1.8em;
    }

    header.header p {
        font-size: 1em;
        max-width: 100%;
    }

    nav.nav {
        padding: 0.5rem;
        margin: 5px 0;
    }

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

    nav.nav ul {
        flex-direction: column;
        align-items: left;
    }

    nav.nav ul li {
        margin: 5px 0;
    }

    nav.nav ul li a {
        padding: 5px; /* 确保触摸友好 */
    }

    main {
        padding: 10px 0;
    }

    section {
        margin-bottom: 15px;
        padding: 10px;
        border-radius: 8px;
    }

    section h2 {
        font-size: 1.5em;
    }

    section h3 {
        font-size: 1.2em;
    }

    section p {
        font-size: 0.9em;
    }

    section ul, section ol {
        padding-left: 15px;
    }

    section ul li, section ol li {
        margin: 5px 0;
    }

    footer {
        padding: 0.5rem;
        margin-top: 10px;
        border-radius: 6px;
    }

    footer p {
        font-size: 0.8em;
    }
}

/* 超小屏幕调整（宽度 ≤ 480px） */
@media (max-width: 480px) {
    header.header h1 {
        font-size: 1.5em;
    }

    nav.nav ul li a {
        font-size: 0.9em;
    }

    section h2 {
        font-size: 1.2em;
    }

    section h3 {
        font-size: 1em;
    }

    section p {
        font-size: 0.8em;
    }

    footer p {
        font-size: 0.7em;
    }
}