body {
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    background: #f5f7fa; 
    color: #333;
    margin: 0;
    padding: 0;
    text-align: center;
    min-height: 100vh;
}


.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 26px;
    font-weight: bold;
}

.logo-icon {
    color: #28a745; 
    font-size: 28px;
    vertical-align: middle;
}

.logo-text {
    margin-left: 6px;
    letter-spacing: 1px;
}

.green { color: #28a745; }
.blue { color: #007bff; }

.lang-switch select {
    padding: 6px 10px;
    background: #ffffff;
    color: #333;
    border: 1px solid #28a745;
    border-radius: 6px;
}


.main-content {
    margin-top: 5vh;
    padding: 20px;
}

.site-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #007bff;
    letter-spacing: 1px;
}

.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.search-box input {
    flex: 1 1 300px;
    max-width: 400px;
    padding: 10px 15px;
    border: 2px solid #28a745;
    border-radius: 25px;
    background: #ffffff;
    color: #333;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.search-box input:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0,123,255,0.2);
}

.search-box button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(90deg, #28a745, #007bff);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.search-box button:hover {
    opacity: 0.85;
}

.tag-cloud {
    margin-top: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.tag-item {
    display: inline-block;
    margin: 6px 10px;
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #4db8ff, #00ff88);
    color: #0a0f14;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.tag-item:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #00ff88, #4db8ff);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    opacity: 1;
}



.search-results {
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-align: left;
}

.result-item {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    transition: 0.3s;
}

.result-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,123,255,0.1);
}

.result-item h3 a {
    color: #007bff;
    text-decoration: none;
}

.result-item .desc {
    color: #555;
    margin: 5px 0;
}

.result-item .views {
    color: #28a745;
    font-size: 14px;
    margin-bottom: 8px;
}

.visit-btn {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(90deg, #28a745, #007bff);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    margin-top: 15px;
}

.visit-btn:hover {
    opacity: 0.85;
}

.back-btn {
    color: #28a745;
    text-decoration: none;
    font-weight: bold;
}

footer {
    margin-top: 50px;
    padding: 12px 0;
    font-size: 14px;
    color: #555;
    background: #f5f7fa;
}


.search-results {
    max-width: 800px;
    margin: 20px auto;
    text-align: left;
}

.result-item {
    background: #ffffff; 
    border: 1px solid #cce7ff; 
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    transition: 0.3s;
}

.result-item:hover {
    background: #e6f7ff; 
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.result-item h3 a {
    color: #007bff; 
    text-decoration: none;
}

.result-item .desc {
    color: #555; 
    margin: 5px 0;
}

.result-item .views {
    color: #28a745; 
    font-size: 14px;
    margin-bottom: 8px;
}

.visit-btn {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(90deg, #28a745, #007bff); /* 渐变按钮 */
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.visit-btn:hover {
    opacity: 0.85;
}

.back-btn {
    color: #28a745; 
    text-decoration: none;
    font-weight: bold;
}

