/* ====== 首页 ====== */
.page-home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at top, #e8f1ff 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, #f3e8ff 0%, transparent 60%),
        #f4f6f9;
    padding: 40px 16px;
}

.home {
    width: 100%;
    max-width: 720px;
    text-align: center;
}

.brand {
    margin-bottom: 36px;
}

.brand-logo {
    display: inline-flex;
    margin-bottom: 12px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    font-weight: 700;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
    user-select: none;
}

.logo-mark.big {
    width: 72px;
    height: 72px;
    font-size: 38px;
    border-radius: 18px;
}

.brand-title {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.brand-slogan {
    color: #6b7280;
    font-size: 15px;
}

/* 搜索表单 */
.search-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    border: 1px solid #e5e7eb;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 14px 18px;
    font-size: 16px;
    color: #1f2937;
    min-width: 0;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-input.big {
    padding: 16px 20px;
    font-size: 17px;
}

.search-btn {
    border: none;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-weight: 600;
    padding: 0 28px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    letter-spacing: 1px;
}

.search-btn.big {
    padding: 0 36px;
    font-size: 16px;
}

.search-btn:hover { opacity: .92; transform: translateY(-1px); }
.search-btn:active { transform: translateY(0); }

/* 热门词 & 历史 */
.hot-words,
.history,
.cloud-types {
    margin-top: 22px;
    text-align: left;
}

.hot-label,
.cloud-label {
    display: inline-block;
    color: #6b7280;
    font-size: 13px;
    margin-right: 8px;
    vertical-align: middle;
}

.hot-list,
.history-list,
.cloud-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    vertical-align: middle;
}

.chip {
    display: inline-block;
    background: #fff;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}

.chip:hover {
    color: #2563eb;
    border-color: #93c5fd;
    background: #eff6ff;
}

.history {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
}

.history-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.link-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 12px;
    cursor: pointer;
}
.link-btn:hover { color: #ef4444; }

.cloud-types {
    margin-top: 28px;
    text-align: center;
}

.cloud-chip {
    --c: #6b7280;
    color: var(--c);
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.home-foot {
    margin-top: 36px;
    color: #9ca3af;
    font-size: 12px;
}

.home-foot a {
    color: #6366f1;
    text-decoration: none;
}
.home-foot a:hover { text-decoration: underline; }

/* 响应式 */
@media (max-width: 540px) {
    .brand-title { font-size: 28px; }
    .logo-mark.big { width: 60px; height: 60px; font-size: 32px; border-radius: 16px; }
    .search-btn { padding: 0 18px; }
    .search-btn.big { padding: 0 24px; }
}
