/* 搜索引擎样式表 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

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

/* 导航 */
.main-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-1px);
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 搜索头部 */
.search-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 滚动时的固定头部样式 */
.search-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 16px 0;
}

.search-header.scrolled .brand-title {
    color: #2d3748;
    text-shadow: none;
}

.search-header.scrolled .brand-subtitle {
    color: #4a5568;
}

.search-header.scrolled .action-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.search-header.scrolled .action-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 品牌区域 */
.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 500;
}

/* 搜索框容器 */
.search-box-container {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-form {
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    align-items: center;
    overflow: hidden;
}

.search-icon {
    padding: 0 16px;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-logo-text {
    padding: 12px 20px;
    background: #8b5a96;
    color: white;
    font-weight: 600;
    font-size: 18px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper:focus-within {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: translateY(-2px);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 18px;
    font-size: 16px;
    background: transparent;
    color: #2d3748;
    font-weight: 500;
}

.search-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.search-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    color: white;
    border-radius: 0 16px 16px 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.search-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* 快捷功能 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.action-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 搜索建议 */
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dfe1e5;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(32, 33, 36, 0.28);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

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

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

/* 搜索结果 */
.search-results {
    padding: 20px 0;
    background: transparent;
    min-height: 100vh;
}

.search-stats {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 0 10px;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-main {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.results-list {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.result-item {
    margin-bottom: 12px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.result-item:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.3);
}

.result-content {
    display: block;
}

.result-body {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 8px;
}

.result-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.result-text {
    flex: 1;
    min-width: 0;
}

.site-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.default-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
}

.site-icon {
    font-size: 24px;
    color: #6c757d;
}

.result-text {
    flex: 1;
    min-width: 0;
}

.result-title {
    margin-bottom: 8px;
}

.result-title a {
    color: #2d3748;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    word-break: break-word;
    transition: color 0.2s ease;
}

.result-title a:hover {
    color: #667eea;
    text-decoration: none;
}

.result-title a:visited {
    color: #805ad5;
}

/* 标题行布局 */
.result-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    min-height: 0;
}

.result-title {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

/* 内容标签样式 */
.content-tag {
    background: #ff6b35;
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 1px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(255, 107, 53, 0.3);
    border: 1px solid #ff5722;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* 标签内图标样式 */
.content-tag img,
.content-tag svg {
    width: 16px !important;
    height: 16px !important;
    margin-right: 2px;
    vertical-align: middle;
    display: inline-block;
}

.result-url {
    color: #006621;
    font-size: 14px;
    margin-bottom: 4px;
    word-break: break-all;
}


.result-date {
    color: #888;
    font-size: 12px;
    margin-right: 8px;
    font-weight: 500;
    display: inline;
}

.result-description {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
    display: inline;
    font-weight: 400;
}

.result-description mark {
    background: linear-gradient(120deg, #fef5e7 0%, #fed7aa 100%);
    color: #2d3748;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* 无结果页面 */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin: 40px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.no-results-icon {
    margin-bottom: 24px;
    color: #667eea;
    opacity: 0.8;
}

.no-results h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #2d3748;
    font-weight: 600;
}

.no-results-subtitle {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 40px;
    line-height: 1.6;
}

.search-query {
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

.search-suggestions {
    margin: 40px 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions h4 {
    color: #2d3748;
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.suggestion-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.suggestion-content h5 {
    margin: 0 0 4px 0;
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
}

.suggestion-content p {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.4;
}

.no-results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.retry-search-btn, .home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.retry-search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.retry-search-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.home-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.home-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-2px);
}

/* 无搜索词提示 */
.no-query {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin: 40px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.no-query-icon {
    margin-bottom: 24px;
    color: #667eea;
    opacity: 0.8;
}

.no-query h3 {
    font-size: 32px;
    margin-bottom: 16px;
    color: #2d3748;
    font-weight: 600;
}

.no-query-subtitle {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 40px;
    line-height: 1.6;
}

.search-features {
    margin: 40px 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-features h4 {
    color: #2d3748;
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.feature-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-content h5 {
    margin: 0 0 4px 0;
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
}

.feature-content p {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.4;
}

/* 现代化分页容器 */
.pagination-container {
    margin: 20px 0 40px 0;
    padding: 24px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 现代化分页按钮组 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.8);
    color: #2d3748;
    text-decoration: none;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transition: left 0.3s ease;
}

.page-link:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.4);
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.page-link:hover::before {
    left: 0;
}

.page-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.page-link.active:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* 特殊按钮样式 */
.page-first, .page-last {
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.3);
}

.page-first:hover, .page-last:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.page-prev, .page-next {
    font-weight: 700;
    font-size: 18px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.3);
}

.page-prev:hover, .page-next:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* 首页 */
.homepage {
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* 欢迎区域 */
.welcome-hero {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-icon {
    margin-bottom: 32px;
    color: #667eea;
    opacity: 0.9;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* 热搜榜区域 */
.trending-section {
    margin-bottom: 80px;
}

.trending-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 左侧热搜榜 */
.trending-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.trending-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.trending-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.trending-title svg {
    color: #667eea;
}

.more-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: #5a67d8;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.trending-item:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(4px);
}

.trending-link {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.trending-link:hover {
    color: #667eea;
}

.trending-item.featured {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 16px;
}

.trending-rank {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.trending-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.trending-image {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.trending-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.trending-text p {
    font-size: 12px;
    color: #4a5568;
    margin: 0;
    line-height: 1.3;
}

.trending-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    flex: 1;
}

.trending-tag {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.trending-tag.hot {
    background: #fef2f2;
    color: #dc2626;
}

.trending-tag.new {
    background: #f0f9ff;
    color: #2563eb;
}

/* 右侧内容区域 */
.trending-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pulse-section, .activities-section, .ranking-sections {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.pulse-chart {
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chart-placeholder {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: visible;
    background: rgba(102, 126, 234, 0.02);
    border: 1px solid rgba(102, 126, 234, 0.1);
    padding: 15px;
    box-sizing: border-box;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #4a5568;
}

.activity-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.activity-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 60px;
}

.activity-card:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.activity-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.activity-content h4 {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.activity-content p {
    font-size: 11px;
    color: #4a5568;
    margin: 0;
    line-height: 1.3;
}

.ranking-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ranking-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ranking-item:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(4px);
}

.ranking-number {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.ranking-content {
    flex: 1;
}

.ranking-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 4px 0;
}

.ranking-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trending-index {
    font-size: 12px;
    color: #4a5568;
}

.trending-arrow {
    font-size: 12px;
    font-weight: 600;
}

.trending-arrow.up {
    color: #10b981;
}

.trending-arrow.down {
    color: #ef4444;
}

/* 现代化底部导航 */
.modern-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
}

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

.footer-main {
    padding: 60px 0 40px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.brand-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
}

.brand-info p {
    color: #2d3748;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.nav-column h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    position: relative;
}

.nav-column h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.nav-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #2d3748;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border-color: transparent;
}

.footer-bottom {
    background: rgba(102, 126, 234, 0.05);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    padding: 24px 0;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright p {
    color: #2d3748;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-link {
    color: #2d3748;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: #667eea;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* 热门搜索 */
.popular-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 48px 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.search-tag {
    background: rgba(255, 255, 255, 0.9);
    color: #2d3748;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.search-tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    border-color: transparent;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    
    .search-input {
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .result-title a {
        font-size: 16px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .pagination-container {
        margin: 30px 0;
        padding: 15px 0;
    }
    
    .pagination-info {
        margin-bottom: 15px;
        padding: 10px 15px;
    }
    
    .page-info {
        font-size: 13px;
        font-weight: 600;
    }
    
    .pagination {
        gap: 3px;
    }
    
    .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 8px;
    }
    
    .page-ellipsis {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .search-header {
        padding: 15px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        padding: 0 15px;
    }
    
    .header-brand {
        display: none;
    }
    
    .search-box-container {
        order: 2;
        max-width: 100%;
    }
    
    .header-actions {
        display: none;
    }
    
    .search-input-wrapper {
        border-radius: 20px;
    }
    
    .search-button {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    /* 首页移动端样式 */
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    .popular-section {
        padding: 32px 20px;
    }
    
    .search-tags {
        gap: 12px;
    }
    
    .search-tag {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* 热搜榜移动端样式 */
    .trending-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .trending-sidebar {
        order: 2;
    }
    
    .trending-main {
        order: 1;
    }
    
    .ranking-sections {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .activity-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .activity-card {
        padding: 10px;
        min-height: 50px;
    }
    
    .trending-item.featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .trending-content {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .chart-placeholder {
        height: 150px;
        padding: 12px;
    }
    
    .pulse-chart {
        min-height: 180px;
    }
    
    /* 现代化底部导航移动端样式 */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0 30px;
    }
    
    .footer-brand {
        text-align: center;
        align-items: center;
    }
    
    .footer-logo {
        width: 50px;
        height: 50px;
    }
    
    .brand-info h3 {
        font-size: 20px;
    }
    
    .brand-info p {
        font-size: 14px;
    }
    
    .footer-nav-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-column h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .nav-tags {
        gap: 6px;
    }
    
    .nav-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .footer-info {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .footer-links {
        gap: 16px;
        justify-content: center;
    }
    
    .footer-link {
        font-size: 13px;
    }
    
    /* 现代化分页移动端样式 */
    .pagination {
        gap: 6px;
        padding: 12px 16px;
        border-radius: 12px;
    }
    
    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .page-first, .page-last {
        font-size: 14px;
    }
    
    .page-prev, .page-next {
        font-size: 16px;
    }
    
    /* 移动端标题行样式 */
    .result-title-row {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .result-title {
        flex: 1;
        min-width: 0;
    }
    
    .content-tag {
        font-size: 11px;
        padding: 1px 6px;
        flex-shrink: 0;
        max-width: 120px;
    }
    
    .content-tag img,
    .content-tag svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    /* 移动端隐藏推荐热门侧边栏 */
    .sidebar {
        display: none !important;
    }
    
    /* 移动端搜索结果占满全宽 */
    .search-results {
        width: 100% !important;
        margin-right: 0 !important;
    }
    
    /* 移动端搜索结果主容器布局 */
    .search-main {
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .results-list {
        width: 100% !important;
        margin-right: 0 !important;
    }
    
    .search-input {
        padding: 10px 14px;
    }
    
    .search-button {
        padding: 10px 14px;
    }
    
    .result-item {
        margin-bottom: 12px;
        padding: 14px;
    }
    
    .result-body {
        gap: 12px;
    }
    
    .result-image {
        width: 90px;
        height: 60px;
    }
    
    .result-title a {
        font-size: 15px;
    }
    
    .result-date {
        font-size: 11px;
        margin-right: 6px;
        display: inline;
    }
    
    .result-description {
        font-size: 13px;
        display: inline;
    }
    
    /* 移动端无结果页面优化 */
    .no-results, .no-query {
        padding: 40px 15px;
        margin: 20px 0;
    }
    
    .no-results h3, .no-query h3 {
        font-size: 24px;
    }
    
    .no-query h3 {
        font-size: 28px;
    }
    
    .suggestion-grid, .feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .suggestion-item, .feature-item {
        padding: 12px;
    }
    
    .no-results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .retry-search-btn, .home-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .search-main {
        flex-direction: column;
        gap: 20px;
    }
    
    .sidebar {
        width: 100%;
        order: -1;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 侧边栏样式 */
.sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 20px;
}

.sidebar-header {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    color: #2d3748;
    font-weight: 600;
}

.hot-search-list {
    margin-bottom: 20px;
}

.hot-search-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.2s ease;
}

.hot-search-item:hover {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    padding: 10px 8px;
    margin: 0 -8px;
}

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

.hot-number {
    width: 24px;
    height: 24px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.hot-search-item:nth-child(1) .hot-number,
.hot-search-item:nth-child(2) .hot-number,
.hot-search-item:nth-child(3) .hot-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.hot-link {
    flex: 1;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    transition: color 0.2s ease;
}

.hot-link:hover {
    color: #667eea;
}

.hot-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    flex-shrink: 0;
}

.tag-热 {
    background: #ff4757;
    color: white;
}

.tag-新 {
    background: #2ed573;
    color: white;
}

.related-searches {
    margin-top: 20px;
}

.related-searches h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #333;
    font-weight: normal;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: all 0.2s;
}

.related-item:hover {
    background: #f8f9fa;
    border-color: #4285f4;
    color: #4285f4;
}

.search-icon {
    margin-right: 8px;
    font-size: 12px;
}

/* 实时脉搏动画效果 */
@keyframes pulseBeat {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.9;
    }
    50% { 
        transform: scale(1.02);
        opacity: 1;
    }
}

@keyframes pulseWave {
    0% {
        transform: translateX(-150%);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateX(150%);
        opacity: 0;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 20px rgba(102, 126, 234, 0.3);
    }
}

@keyframes pulseLine {
    0% {
        stroke-dasharray: 0, 1000;
        stroke-width: 3;
    }
    100% {
        stroke-dasharray: 1000, 0;
        stroke-width: 3;
    }
}

@keyframes pulseDot {
    0%, 100% {
        r: 4;
        fill-opacity: 0.8;
    }
    50% {
        r: 5;
        fill-opacity: 1;
    }
}

.pulse-section {
    position: relative;
    overflow: hidden;
    animation: pulseBeat 3s infinite, pulseGlow 3s infinite;
}

.pulse-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.15), rgba(102, 126, 234, 0.2), rgba(102, 126, 234, 0.15), transparent);
    animation: pulseWave 3s infinite;
    pointer-events: none;
    border-radius: 16px;
}

.pulse-chart svg path {
    animation: pulseLine 3s linear infinite;
}

.pulse-chart svg circle {
    animation: pulseDot 3s ease-in-out infinite;
}

.pulse-chart svg circle:nth-child(2) {
    animation-delay: 0.3s;
}

.pulse-chart svg circle:nth-child(3) {
    animation-delay: 0.6s;
}

.pulse-chart svg circle:nth-child(4) {
    animation-delay: 0.9s;
}

.pulse-chart svg circle:nth-child(5) {
    animation-delay: 1.2s;
}

.pulse-chart svg circle:nth-child(6) {
    animation-delay: 1s;
}
