* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: linear-gradient(180deg, #e8f4fc 0%, #f8fbfe 50%, #ffffff 100%); min-height: 100vh; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.container { max-width: 640px; margin: 0 auto; padding: 0 20px; }
.search-section { padding-top: 2vh; padding-bottom: 30px; }
header { background: #fff; border-bottom: 1px solid #e5e5e5; padding: 12px 0; position: sticky; top: 0; z-index: 100; }
header .header-inner { display: flex; align-items: center; justify-content: space-between; }
header h1 { font-size: 18px; font-weight: 500; }
header h1 a { color: #333; text-decoration: none; }
nav { display: flex; gap: 20px; }
nav a { font-size: 14px; color: #666; }
nav a:hover { color: #4e6ef2; }
.logo { text-align: center; margin-bottom: 16px; }
.slogan { width: 300px; height: 50px; display: block; margin: 0 auto; }
.slogan text { font-size: 14px; font-family: inherit; font-weight: 500; }
.search-wrapper { background: #fff; border-radius: 10px; border: 2px solid var(--theme-color, #4e6ef2); margin-bottom: 16px; display: flex; align-items: center; }
#searchInput { flex: 1; padding: 14px 16px; font-size: 16px; border: none; outline: none; background: transparent; color: #222; }
#searchInput::placeholder { color: #bbb; }
#clearBtn { display: none; width: 20px; height: 20px; line-height: 18px; text-align: center; font-size: 16px; color: #999; cursor: pointer; margin-right: 8px; border-radius: 50%; background: #eee; }
#clearBtn:hover { background: #ddd; color: #666; }
#searchBtn { padding: 0 32px; height: 48px; margin: -2px -2px -2px 0; border: none; background: var(--theme-color, #4e6ef2); border-radius: 0 10px 10px 0; cursor: pointer; font-size: 16px; color: #fff; font-weight: 500; }
#searchBtn:hover { background: var(--theme-hover, #4662d9); }
.engines { display: flex; justify-content: flex-start; gap: 24px; }
.engine-option { display: none; }
.engine-label { display: inline-block; padding: 8px 4px; font-size: 16px; cursor: pointer; color: #666; border-bottom: 2px solid transparent; }
.engine-label:hover { color: #222; }
.engine-option:checked + .engine-label { color: #4e6ef2; font-weight: 500; border-bottom: 2px solid #4e6ef2; }
.site-nav { background: #fff; padding: 20px; margin-bottom: 12px; border-radius: 8px; }
.site-nav-title { font-size: 14px; color: #999; margin-bottom: 12px; }
.site-nav-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.site-nav-item { display: flex; flex-direction: column; align-items: center; padding: 12px 8px; border-radius: 8px; transition: background 0.2s; }
.site-nav-item:hover { background: #f5f5f5; }
.site-nav-item .icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; color: #fff; }
.site-nav-item .name { font-size: 12px; color: #333; }
.news-section { background: #fff; padding: 20px 0; }
.news-list { list-style: none; }
.news-item { border-bottom: 1px solid #f0f0f0; }
.news-item:last-child { border-bottom: none; }
.news-item a { display: flex; padding: 16px 0; align-items: center; }
.news-item .info { flex: 1; min-width: 0; padding-right: 12px; }
.news-item h2 { font-size: 16px; font-weight: 500; color: #333; line-height: 1.5; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .meta { font-size: 12px; color: #999; }
.news-item .meta span { margin-right: 12px; }
.news-item .thumb { width: 120px; height: 80px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item:hover h2 { color: #4e6ef2; }
footer { text-align: center; padding: 30px 20px; font-size: 12px; color: #999; }
footer .divider { margin: 0 10px; color: #ddd; }
footer a { color: #666; text-decoration: none; }
footer a:hover { color: #4e6ef2; }
.search-section.fixed { position: fixed; top: 49px; left: 0; right: 0; z-index: 99; background: #fff; padding: 10px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.search-section.fixed .logo, .search-section.fixed .engines { display: none; }
.search-section.fixed .search-wrapper { margin-bottom: 0; }
.search-section.expanded { position: fixed; top: 49px; left: 0; right: 0; z-index: 99; background: linear-gradient(180deg, #e8f4fc 0%, #f8fbfe 100%); padding: 16px 0 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.search-section.expanded .logo, .search-section.expanded .engines { display: block; }
.search-section.expanded .logo { display: flex; justify-content: center; }
.search-placeholder { display: none; }
@media (max-width: 480px) {
    .slogan { width: 260px; height: 44px; }
    .slogan text { font-size: 12px; }
    .logo h1 { font-size: 32px; letter-spacing: 4px; }
    #searchInput { padding: 12px 14px; font-size: 15px; }
    #searchBtn { padding: 0 20px; height: 44px; font-size: 15px; }
    .engines { gap: 16px; }
    .engine-label { padding: 6px 2px; font-size: 14px; }
    .site-nav-list { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .site-nav-item { padding: 10px 4px; }
    .site-nav-item .icon { width: 36px; height: 36px; font-size: 16px; }
    .site-nav-item .name { font-size: 11px; }
    .news-item .thumb { width: 100px; height: 66px; }
    .news-item h2 { font-size: 15px; }
}
