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

body {
    background: #f8f9fa;
    line-height: 1.6;
    color: #333;
}

header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

h1 {
    color: #1a73e8;
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 20px;
}

.search-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

#searchForm {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

#searchInput {
    flex: 1;
    padding: 15px 25px;
    border: 2px solid #1a73e8;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
}

#searchInput:focus {
    box-shadow: 0 0 10px rgba(26,115,232,0.2);
    outline: none;
}

button[type="submit"] {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

button[type="submit"]:hover {
    background: #1557b0;
    transform: translateY(-2px);
}

.keywords-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
}

.hot-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1400px;
    margin: 30px auto;
}

.hot-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.hot-item h2 {
    color: #444;
    font-size: 1.3em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.keyword-card {
    display: inline-block;
    background: #fff;
    border-radius: 12px;
    padding: 10px 18px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    text-align: center;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.keyword-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    background: #1a73e8;
    color: white;
}

.keyword-empty {
    color: #999;
    cursor: default;
}

.keyword-empty:hover {
    background: #fff;
    color: #999;
    transform: none;
}

#searchResults {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    animation: fadeIn 0.5s forwards;
}

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

.search-header h2 {
    color: #444;
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.result-item {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

.result-item h3 {
    margin-bottom: 10px;
}

.result-item h3 a {
    color: #1a73e8;
    text-decoration: none;
}

.result-item h3 a:hover {
    text-decoration: underline;
}

.result-item p {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

.related-keywords {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.related-keywords h4 {
    color: #666;
    margin-bottom: 12px;
    font-size: 1em;
}

.related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-item {
    display: inline-block;
    background: #f0f4ff;
    color: #1a73e8;
    padding: 6px 14px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.related-item:hover {
    background: #1a73e8;
    color: #fff;
}

footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    background: #fff;
    border-top: 1px solid #eee;
}

.friend-links {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.friend-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.friend-links a:hover {
    color: #1a73e8;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hot-lists { grid-template-columns: 1fr; }
    h1 { font-size: 1.8em; }
    #searchForm { flex-direction: column; }
    button[type="submit"] { width: 100%; }
}
