body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
}

header {
    background-color: #fff;
    color: #333;
    padding: 1rem;
    border-bottom: 2px solid #4CAF50;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

a {
    color: #333;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

a.active {
    font-weight: bold;
    border-bottom: 2px solid #4CAF50;
}

a:hover {
    color: #4CAF50;
}

/* Loading animation */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

section {
    padding: 2rem;
    max-width: 1920px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    color: #4CAF50;
}

footer {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 2rem;
}

footer p {
    margin: 0.5rem 0;
}

/* 搜索栏样式 */
#search-bar {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    height: 150px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#search-bar.show {
    transform: translateY(0);
    opacity: 1;
}

 .inner-search-bar {
    width: 40%;
    text-align: center;
}

.inner-search-bar input {
    width: 70%;
    flex: 1;
    height: 50px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 10px;
    margin-right: 10px;
    font-size: 20px;
    transition: 1s;
}

.inner-search-bar input:focus {
    border: 2px solid #4CAF50;
    border-color: #4CAF50;
    outline: none;
    box-shadow: 2px 3px 4px #4CAF50;
}

.inner-search-bar button {
    width: 10%;
    height: 50px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 15px;
    cursor: pointer;
}

button#search-close {
    background:#000000;
}

#search-bar button:hover {
    background: #45a049;
}

#search-close {
    width: 15%;
    height: 50px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 15px;
    cursor: pointer;
    margin-left: 10px;
}

#search-close:hover {
    background: #d32f2f;
}

/* 遮罩样式 */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#overlay.show {
    opacity: 1;
}

/* header 相对定位 */
header {
    position: relative;
    z-index: 1001;
}

