/* =============================================================
 * search.css — PC 搜索入口页（label/search）& 搜索结果页
 * ============================================================= */

/* ── 入口页：外层容器 ─────────────────────────────────────────── */
.pcs-wrap {
	min-height: calc(100vh - 120px);
	display: flex; flex-direction: column; align-items: center;
	padding: 40px 20px 60px;
}
.pcs-hero { width: 100%; max-width: 680px; margin-bottom: 32px; }

/* ── 结果页：搜索区（与入口页 pcs-hero 视觉一致） ────────────── */
.srp-hero-zone {
	display: flex;
	justify-content: center;
	padding: 28px 20px 0;
	border-bottom: 1px solid var(--el-border-color-lighter, #ebeef5);
}
.srp-hero-zone .pcs-hero { margin-bottom: 0; padding-bottom: 24px; }

/* 标题提示（入口 & 结果页公用） */
.pcs-logo-hint {
	text-align: center; margin-bottom: 24px;
	font-size: 22px; font-weight: 700;
	color: var(--el-text-primary, #303133);
}
.pcs-logo-hint span { color: var(--el-color-warning, #e6a23c); }

/* 模块 Tab */
.pcs-mod-tabs {
	display: flex; gap: 0; margin-bottom: 12px;
	border-radius: 8px 8px 0 0; overflow: hidden;
	border: 1px solid var(--el-border-color, #dcdfe6); border-bottom: none;
}
.pcs-mod-tab {
	flex: 1; text-align: center; padding: 9px 0;
	font-size: 13px; font-weight: 600; cursor: pointer;
	color: var(--el-text-secondary, #909399);
	background: var(--el-fill-color-light, #f5f7fa);
	border: none; transition: all .2s; text-decoration: none;
}
.pcs-mod-tab.active { color: #fff; background: var(--el-color-warning, #e6a23c); }
.pcs-mod-tab:not(.active):hover { color: var(--el-color-warning, #e6a23c); background: var(--el-fill-color, #f0f2f5); }

/* 搜索框 */
.pcs-form {
	display: flex; gap: 0;
	border: 2px solid var(--el-color-warning, #e6a23c);
	border-radius: 0 0 10px 10px; overflow: hidden; transition: box-shadow .2s;
}
.pcs-form:focus-within { box-shadow: 0 0 0 3px rgba(230, 162, 60, .2); }
.pcs-input {
	flex: 1; border: none; outline: none; padding: 13px 16px;
	font-size: 16px;
	background: var(--el-bg-color, #fff);
	color: var(--el-text-primary, #303133);
}
.pcs-input::placeholder { color: var(--el-text-placeholder, #c0c4cc); }
.pcs-submit {
	padding: 0 28px;
	background: var(--el-color-warning, #e6a23c);
	color: #fff; border: none; font-size: 16px; font-weight: 600;
	cursor: pointer; display: flex; align-items: center; gap: 6px;
	white-space: nowrap; transition: background .2s;
}
.pcs-submit:hover { background: #f0a020; }

/* ── 结果区 ──────────────────────────────────────────────────── */
.srp-body { padding-top: 0; }

/* 排序栏 */
.srp-sort-row {
	display: flex; align-items: center; gap: 4px;
	padding: 12px 0 8px;
	border-bottom: 1px solid var(--el-border-color-lighter, #ebeef5);
	margin-bottom: 8px;
}
.srp-sort-label {
	font-size: 13px; color: var(--el-text-placeholder, #c0c4cc);
	margin-right: 4px;
}
.srp-sort-btn {
	font-size: 13px; padding: 3px 12px; border-radius: 4px;
	color: var(--el-text-secondary, #909399);
	text-decoration: none; transition: all .15s;
}
.srp-sort-btn:hover { color: var(--el-color-warning, #e6a23c); }
.srp-sort-btn.active {
	color: var(--el-color-warning, #e6a23c);
	background: rgba(230, 162, 60, .1);
	font-weight: 700;
}

/* 无关键词空状态 */
.srp-empty-body {
	text-align: center;
	padding: 80px 20px 100px;
	color: var(--el-text-placeholder, #c0c4cc);
}
.srp-empty-body i {
	font-size: 56px; display: block;
	margin-bottom: 16px;
	color: var(--el-border-color, #dcdfe6);
}
.srp-empty-body p { font-size: 14px; }

/* ── 搜索历史 / 热词区（入口页专用） ────────────────────────── */
.pcs-content { width: 100%; max-width: 680px; }
.pcs-section { margin-bottom: 28px; }
.pcs-sec-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pcs-sec-hd span { font-size: 14px; font-weight: 700; color: var(--el-text-primary, #303133); }
.pcs-sec-hd i { font-size: 18px; cursor: pointer; color: var(--el-text-placeholder, #c0c4cc); transition: color .2s; }
.pcs-sec-hd i:hover { color: #ff4757; }

.pcs-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pcs-tag {
	display: inline-block; padding: 5px 16px; border-radius: 20px;
	font-size: 13px; text-decoration: none; color: inherit;
	background: var(--el-fill-color-light, #f5f7fa);
	border: 1px solid var(--el-border-color-lighter, #ebeef5);
	transition: all .2s; cursor: pointer;
}
.pcs-tag:hover { color: var(--el-color-warning, #e6a23c); border-color: var(--el-color-warning, #e6a23c); background: rgba(230, 162, 60, .06); }
.pcs-hot-tag { background: var(--el-fill-color-light, #f5f7fa); }
.pcs-hot-tag:nth-child(1),
.pcs-hot-tag:nth-child(2),
.pcs-hot-tag:nth-child(3) { color: #ff4757; border-color: rgba(255, 71, 87, .3); background: rgba(255, 71, 87, .05); }
.pcs-empty { font-size: 13px; color: var(--el-text-placeholder, #c0c4cc); }

/* ── 深色模式 ───────────────────────────────────────────────── */
html[data-theme="dark"] .srp-hero-zone { border-bottom-color: #2c2d3e; }
html[data-theme="dark"] .pcs-logo-hint { color: #e0e0e0; }
html[data-theme="dark"] .pcs-input { background: #1e1e2e; color: #e0e0e0; }
html[data-theme="dark"] .pcs-mod-tab:not(.active) { background: #252535; color: #aaa; }
html[data-theme="dark"] .pcs-mod-tab:not(.active):hover { background: #2a2a3e; }
html[data-theme="dark"] .pcs-tag { background: #252535; border-color: #3a3b4a; color: #ccc; }
html[data-theme="dark"] .pcs-hot-tag:nth-child(1),
html[data-theme="dark"] .pcs-hot-tag:nth-child(2),
html[data-theme="dark"] .pcs-hot-tag:nth-child(3) { background: rgba(255, 71, 87, .1); }
html[data-theme="dark"] .srp-sort-row { border-bottom-color: #2c2d3e; }
html[data-theme="dark"] .srp-empty-body i { color: #2c2d3e; }
html[data-theme="dark"] .srp-empty-body { color: #555; }
