/* 全局样式与动画定义 */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --secondary-color: #2196F3;
    --secondary-dark: #1976D2;
    --background-color: #F5F7F6;
    --text-light: #ffffff;
    --text-dark: #2C3E50;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

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

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

@keyframes ripple {
    0% { transform: scale(0); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes scale-in {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes sweep-in {
    0% { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
    100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, "Microsoft YaHei", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #F5F7F6 0%, #E8F5E9 50%, #C8E6C9 100%);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    animation: fadeIn 1s ease-out;
    min-height: 100vh;
}

/* 语言切换动画 */
body.language-changing::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: fadeIn 0.2s ease-out forwards, fadeIn 0.2s ease-in reverse forwards 0.6s;
    pointer-events: none;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: rotate 1s linear infinite;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* 头部导航栏 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(to right, rgba(76, 175, 80, 0.95), rgba(56, 142, 60, 0.95));
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition-normal);
}

header.scrolled {
    padding: 10px 30px;
    background: linear-gradient(to right, rgba(76, 175, 80, 0.98), rgba(56, 142, 60, 0.98));
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideUp 0.8s ease-out;
}

.logo {
    height: 100px;
    width: auto;
    transition: var(--transition-normal);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo:hover {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    list-style: none;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.main-nav li {
    margin: 0 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: var(--transition-fast);
    font-weight: 500;
    border: 1px solid transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-item i {
    margin-right: 8px;
    font-size: 0.9em;
    transition: var(--transition-fast);
}

.nav-item.active {
    background-color: var(--text-light);
    color: var(--text-dark);
    box-shadow: var(--box-shadow);
    transform: translateY(-2px);
}

.nav-item:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-item:active:not(.active) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-settings {
    display: flex;
    align-items: center;
    animation: slideUp 0.8s ease-out 0.4s both;
}

#language-selector {
    margin-right: 20px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: var(--transition-fast);
    cursor: pointer;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

#language-selector:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

#language-selector:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.5);
}

.login-btn {
    color: var(--text-light);
    text-decoration: none;
    margin-right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.login-btn:before {
    content: '\f007';
    font-family: 'Font Awesome 5 Free';
    margin-right: 8px;
    font-size: 14px;
}

.login-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
    border-color: rgba(255, 255, 255, 0.5);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.user-avatar {
    position: relative;
    cursor: pointer;
    transition: var(--transition-fast);
}

.user-avatar:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    top: 0;
    left: 0;
    transition: var(--transition-normal);
}

.user-avatar:hover:after {
    border-color: var(--primary-color);
    animation: pulse 2s infinite;
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    transition: var(--transition-normal);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.user-avatar:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 用户菜单 */
.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 100;
    animation: scale-in 0.2s ease-out;
    transform-origin: top right;
    width: 160px;
    overflow: hidden;
    display: none; /* 默认隐藏菜单 */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 当添加active类时显示菜单 */
.user-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.user-menu:before {
    content: '';
    position: absolute;
    top: -10px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

.user-menu ul {
    list-style: none;
    padding: 0;
}

.user-menu li {
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
    transition: var(--transition-fast);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.user-menu li:last-child {
    border-bottom: none;
}

.user-menu li:hover {
    background-color: #f9f9f9;
    padding-left: 20px;
}

.user-menu li i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 14px;
}

/* 搜索区域 */
.search-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    animation: slideUp 0.8s ease-out 0.6s both;
}

.search-wrapper {
    display: flex;
    align-items: center;
    width: 80%;
    max-width: 700px;
    background-color: white;
    border-radius: 30px;
    overflow: hidden;
    padding: 5px;
    box-shadow: var(--box-shadow);
    transition: var(--transition-normal);
}

.search-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.search-wrapper:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.search-wrapper.focused {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3), 0 8px 25px rgba(0, 0, 0, 0.2);
}

.search-wrapper.shake {
    animation: shake 0.5s ease-in-out;
}

.search-wrapper.searching::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 10;
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    color: var(--text-dark);
    background: transparent;
    outline: none;
    transition: var(--transition-fast);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    background-color: var(--primary-dark);
}

.search-input:focus::placeholder {
    opacity: 0.5;
    transform: translateX(5px);
}

.search-input.error {
    background-color: #ffdddd;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.search-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-normal);
}

.search-button:hover {
    background-color: var(--secondary-dark);
}

.search-button:hover:before {
    left: 100%;
    transition: 0.7s;
}

.search-button i {
    margin-right: 8px;
    font-size: 0.9em;
}

.search-button:active {
    transform: scale(0.98);
    background-color: #3b76d8;
}

.search-button.active {
    animation: pulse 1.5s infinite;
}

/* 涟漪效果 */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    pointer-events: nneo;
    animation: ripple 0.6s linear;
}

/* 内容区域 */
.content-container {
    display: flex !important;
    justify-content: space-between;
    padding: 30px;
    margin: 20px auto 40px;
    max-width: 1300px;
    gap: 30px;
    background-color: transparent;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 10;
    min-height: 400px;
}

/* 信息展示框样式 */
.info-box {
    flex: 0 0 45%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 15px;
    font-size: 18px;
    line-height: 1.8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
    transform: translateY(0);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: var(--text-dark);
    z-index: 11;
    min-height: 200px;
    display: block !important;
    backdrop-filter: blur(10px);
}

.info-box:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.98);
}

.info-box p {
    position: relative;
    z-index: 1;
    margin: 0;
    text-align: justify;
    letter-spacing: 0.5px;
}

/* 图片轮播区域样式 */
.image-slider {
    flex: 0 0 50%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    height: 450px;
    background-color: #ffffff;
    z-index: 11;
    min-height: 400px;
    display: block !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.image-slider:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px) scale(1.01);
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background-color: #ffffff;
    overflow: hidden;
}

.slide.current {
    opacity: 1;
    z-index: 12;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 13;
}

.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

/* 轮播图导航按钮 */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 15;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.image-slider:hover .slider-nav {
    opacity: 1;
}

.slider-nav:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* 轮播图加载状态 */
.slider-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 20;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.slider-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.slider-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(76, 175, 80, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: rotate 1s linear infinite;
    margin-bottom: 15px;
}

.slider-loading p {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    animation: pulse 2s infinite;
    letter-spacing: 0.5px;
}

/* 管理员图片上传区域 */
#admin-image-upload {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

#admin-image-upload h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group select,
.form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition-fast);
}

.form-group select:focus,
.form-group input[type="file"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

#image-upload-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

#image-upload-form button:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

#image-upload-form button:active {
    transform: scale(0.98);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .search-wrapper {
        width: 85%;
    }
    
    .content-container {
        padding: 15px;
    }
}

@media (max-width: 900px) {
    .content-container {
        flex-direction: column;
    }
    
    .info-box, .image-slider {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
    
    .search-wrapper {
        width: 90%;
    }
    
    .image-slider {
        height: 300px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    .main-nav {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .main-nav ul {
        justify-content: center;
        width: 100%;
    }
    
    .user-settings {
        width: 100%;
        justify-content: center;
    }
    
    .search-wrapper {
        flex-direction: column;
        width: 95%;
        border-radius: 25px;
    }
    
    .search-input {
        border-radius: 25px 25px 0 0;
        padding: 15px 20px;
        width: 100%;
    }
    
    .search-button {
        border-radius: 0 0 25px 25px;
        padding: 15px;
        width: 100%;
    }
    
    .info-box {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav li {
        margin: 5px 0;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .user-settings {
        flex-direction: column;
    }
    
    #language-selector, .login-btn {
        margin: 5px 0;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .user-avatar {
        margin-top: 10px;
    }
    
    .info-box {
        font-size: 16px;
        padding: 20px;
    }
    
    .image-slider {
        height: 250px;
    }
    
    .search-wrapper {
        width: 100%;
        border-radius: 20px;
    }
    
    .search-input {
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 20px 20px 0 0;
    }
    
    .search-button {
        padding: 12px;
        font-size: 14px;
        border-radius: 0 0 20px 20px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background-color: rgba(76, 175, 80, 0.5);
    border-radius: 10px;
    transition: var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(76, 175, 80, 0.7);
}

/* 骨架屏加载效果 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* 页面滚动显示效果 */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 页脚样式 */
footer {
    background: linear-gradient(to right, rgba(76, 175, 80, 0.95), rgba(56, 142, 60, 0.95));
    color: var(--text-light);
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    font-size: 14px;
    opacity: 0.8;
}

/* 搜索区域增强样式 */
.input-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.clear-search-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    display: none; /* 初始隐藏 */
}

.clear-search-btn:hover {
    color: #555;
}

.search-suggestions {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f5f9f5;
}

.suggestion-item .match-type {
    font-size: 12px;
    color: #6fcf7c;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 10px;
    background-color: rgba(111, 207, 124, 0.1);
}

.suggestion-item .main-text {
    font-weight: 500;
}

.suggestion-item .sub-text {
    font-size: 13px;
    color: #777;
    margin-top: 3px;
}

.search-results {
    margin: 20px auto;
    max-width: 1000px;
    display: none;
}

.search-result-item {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: flex-start;
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.search-result-thumb {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-size: 18px;
    margin: 0 0 5px;
    color: var(--primary-dark);
}

.search-result-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.search-result-highlight {
    background-color: rgba(111, 207, 124, 0.15);
    padding: 0 2px;
    border-radius: 2px;
}

.search-result-meta {
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}

/* 搜索表单样式优化 */
#search-form {
    display: flex;
    width: 100%;
    position: relative;
}

.search-input {
    flex: 1;
    padding-right: 30px; /* 为清空按钮留出空间 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-result-item {
        flex-direction: column;
    }
    
    .search-result-thumb {
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 10px;
    }
} 