* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f5ff 0%, #e6f0ff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    max-width: 900px;
    padding: 0 20px;
}

.header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #3498db, #8e44ad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.7;
}

.search-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px;
}

.search-box {
    position: relative;
    display: flex;
    margin-bottom: 10px;
}

.search-input {
    flex: 1;
    padding: 18px 25px;
    font-size: 1.2rem;
    border: 2px solid #eef2f7;
    border-radius: 12px;
    background: #f8f9fa;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    color: #2c3e50;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08), 0 0 0 4px rgba(52, 152, 219, 0.15);
    background: white;
}

.search-button {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0 40px;
    margin-left: 15px;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button i {
    margin-right: 10px;
}

.search-button:hover {
    background: linear-gradient(90deg, #2980b9, #3498db);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.hot-searches {
    margin-top: 20px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f1f2f6;
}

.hot-searches h2 {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

.hot-searches h2 i {
    margin-right: 15px;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.12);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.keyword {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
}

.keyword:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.keyword:nth-child(2n) {
    background: linear-gradient(135deg, #e74c3c, #e67e22);
}

.keyword:nth-child(3n) {
    background: linear-gradient(135deg, #2ecc71, #1abc9c);
}

.keyword:nth-child(4n) {
    background: linear-gradient(135deg, #9b59b6, #34495e);
}

.search-results {
    margin-top: 30px;
    display: none;
}

.search-results h2 {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 25px;
}

.search-results h2 i {
    margin-right: 15px;
    color: #3498db;
    background: rgba(52, 152, 219, 0.12);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.results-list {
    list-style: none;
}

.result-item {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-left-color: #e74c3c;
}

.result-image {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.result-item:hover .result-image img {
    transform: scale(1.05);
}

.result-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.2));
    border-radius: 12px;
}

.result-content {
    flex: 1;
}

.result-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: flex;
    align-items: center;
}

.result-title i {
    margin-right: 12px;
    color: #3498db;
    font-size: 1.2rem;
}

.result-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.chapters-container {
    margin-top: 15px;
}

.chapter-item {
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chapter-item:hover {
    transform: translateX(5px);
    background: #f1f2f6;
}

.chapter-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.chapter-header:hover {
    background: rgba(52, 152, 219, 0.05);
}

.chapter-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.chapter-title i {
    margin-right: 10px;
    color: #e74c3c;
    font-size: 0.9rem;
}

.chapter-toggle {
    color: #7f8c8d;
    transition: transform 0.3s ease;
}

.chapter-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: #555;
    line-height: 1.7;
    background: white;
}

.chapter-item.active .chapter-content {
    padding: 15px 20px 25px;
    max-height: 500px;
}

.chapter-item.active .chapter-toggle {
    transform: rotate(180deg);
}

.vip {
    background-color: #ebd078;
}

.result-meta {
    display: flex;
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
    position: relative;
    padding-top: 15px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.result-meta span {
    margin-right: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.result-meta i {
    margin-right: 6px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.footer {
    margin-top: 50px;
    text-align: center;
    color: #7f8c8d;
    font-size: 1rem;
    max-width: 600px;
    padding: 0 20px;
}

.result-count {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 20px;
    padding-left: 5px;
}

.result-count strong {
    color: #e74c3c;
    font-weight: 600;
}

.notice {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ff0000;
}

@media (max-width: 900px) {
    .result-item {
        flex-direction: column;
    }
    
    .result-image {
        width: 100%;
        height: 250px;
        margin-right: 0;
        margin-bottom: 25px;
    }
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-button {
        margin-left: 0;
        margin-top: 15px;
        padding: 18px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .keyword {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .result-item {
        padding: 20px;
    }
    
    .result-title {
        font-size: 1.4rem;
    }
    
    .result-description {
        font-size: 1rem;
    }
    
    .chapter-title {
        font-size: 1.05rem;
    }
    
    .result-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .search-container {
        padding: 25px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .result-image {
        height: 180px;
    }
    
    .result-title {
        font-size: 1.3rem;
    }
}

/* 增强导航栏样式 */
.navbar {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 0 5%;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 15px 0;*/
    border-bottom: 1px solid #f1f2f6;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #3498db, #8e44ad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.logo i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.search-bar {
    display: flex;
    width: 50%;
    max-width: 600px;
}

.nav-search-input {
    flex: 1;
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #eef2f7;
    border-radius: 30px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.nav-search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: white;
}

.nav-search-button {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search-button:hover {
    background: linear-gradient(90deg, #2980b9, #3498db);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

/* 汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #f8f9fa;
    color: #3498db;
}

/* 移动端菜单关闭按钮 - PC端默认隐藏 */
.mobile-menu-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

/* 主导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    /*padding: 15px 0;*/
}

.nav-item {
    margin: 0 20px;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-link i {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #3498db;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #3498db;
    transform: translateY(-3px);
}

.nav-link:hover i {
    transform: scale(1.2);
    color: #e74c3c;
}

.nav-link.active {
    color: #3498db;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #8e44ad);
    border-radius: 2px;
}

/* 移动端导航样式 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 0 20px 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
    }
    
    .nav-link {
        flex-direction: row;
        justify-content: flex-start;
        padding: 20px 30px;
        border-bottom: 1px solid #f1f2f6;
        width: 100%;
    }
    
    .nav-link i {
        margin-right: 15px;
        margin-bottom: 0;
        font-size: 1.2rem;
    }
    
    .nav-link:hover {
        background: #f8f9fa;
        transform: none;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-link.active {
        background: #f0f5ff;
        border-left: 4px solid #3498db;
    }
    
    /* 移动端菜单关闭按钮 */
    .mobile-menu-close {
        display: block !important;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #666;
        cursor: pointer;
        padding: 10px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-close:hover {
        background: #f8f9fa;
        color: #e74c3c;
    }
    
    /* 移动端遮罩层 */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

.ad {
	margin-bottom: 5px;
}

.displaynone {
    display: none;
}