/* 谷哥大叔关键词查询：Flatsome 兼容的独立品牌界面 */
body.ssa-keyword-tool-page {
	--ssa-kw-ink: #2f4658;
	--ssa-kw-title: #263f52;
	--ssa-kw-muted: #6d8190;
	--ssa-kw-brand: #347b9f;
	--ssa-kw-brand-dark: #285f7b;
	--ssa-kw-sky: #83c9e9;
	--ssa-kw-soft: #eef7fa;
	--ssa-kw-line: #d7e6ed;
}

body.ssa-keyword-tool-page #main {
	min-height: 76vh;
	background:
		radial-gradient(circle at 7% 6%, rgba(131, 201, 233, .20), transparent 25%),
		radial-gradient(circle at 95% 15%, rgba(248, 239, 225, .75), transparent 25%),
		#eef5f8;
}

body.ssa-keyword-tool-page .page-title {
	display: none;
}

body.ssa-keyword-tool-page .page-wrapper,
body.ssa-keyword-tool-page .content-area,
body.ssa-keyword-tool-page .entry-content {
	padding-top: 0;
	padding-bottom: 0;
}

body.ssa-keyword-tool-page .entry-content > :not(.ssa-kw),
body.ssa-keyword-tool-page .entry-content > p:empty {
	display: none;
}

.ssa-kw,
.ssa-kw * {
	box-sizing: border-box;
}

.ssa-kw [hidden] {
	display: none !important;
}

.ssa-kw {
	width: min(1180px, calc(100% - 36px));
	margin: 0 auto;
	padding: 52px 0 66px;
	color: var(--ssa-kw-ink);
	font-family: inherit;
}

.ssa-kw button,
.ssa-kw input,
.ssa-kw textarea,
.ssa-kw select {
	font: inherit;
}

.ssa-kw-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 28px;
}

.ssa-kw-hero-copy {
	max-width: 720px;
}

.ssa-kw-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 13px;
	color: var(--ssa-kw-brand);
	font-size: 11px;
	font-weight: 850;
	letter-spacing: .15em;
}

.ssa-kw-kicker > span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #73bd64;
	box-shadow: 0 0 0 5px rgba(115, 189, 100, .13);
}

.ssa-kw-hero h1 {
	margin: 0;
	color: var(--ssa-kw-title);
	font-size: clamp(32px, 4.4vw, 50px);
	font-weight: 850;
	letter-spacing: -.045em;
	line-height: 1.12;
}

.ssa-kw-hero-copy > p {
	max-width: 660px;
	margin: 15px 0 0;
	color: var(--ssa-kw-muted);
	font-size: 16px;
	line-height: 1.75;
}

.ssa-kw-account-card {
	display: grid;
	grid-template-columns: 48px minmax(118px, 1fr) auto;
	gap: 11px;
	align-items: center;
	min-width: 276px;
	padding: 13px;
	border: 1px solid var(--ssa-kw-line);
	border-radius: 17px;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 13px 34px rgba(40, 75, 94, .09);
}

.ssa-kw-avatar {
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border: 1px solid #b7dce9;
	border-radius: 14px;
	background: linear-gradient(145deg, #c8eaf7, var(--ssa-kw-sky));
}

.ssa-kw-avatar img {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.ssa-kw-account-card > div {
	display: grid;
	gap: 2px;
}

.ssa-kw-account-card small {
	color: #80929e;
	font-size: 11px;
}

.ssa-kw-account-card strong {
	color: var(--ssa-kw-title);
	font-size: 16px;
	font-weight: 850;
}

.ssa-kw-recharge-link {
	min-width: 52px;
	margin: 0;
	padding: 7px 10px;
	border: 0;
	border-radius: 9px;
	background: #e5f3f8;
	color: var(--ssa-kw-brand-dark) !important;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.ssa-kw-search-card,
.ssa-kw-results {
	overflow: hidden;
	border: 1px solid var(--ssa-kw-line);
	border-radius: 22px;
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 20px 55px rgba(43, 73, 91, .09);
}

.ssa-kw-card-heading,
.ssa-kw-results-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 27px;
	border-bottom: 1px solid var(--ssa-kw-line);
	background: linear-gradient(100deg, rgba(226, 243, 249, .95), rgba(248, 252, 253, .72));
}

.ssa-kw-card-heading > div,
.ssa-kw-results-head > div {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ssa-kw-card-heading h2,
.ssa-kw-results-head h2 {
	margin: 0;
	color: var(--ssa-kw-title);
	font-size: 20px;
	font-weight: 850;
	letter-spacing: -.02em;
}

.ssa-kw-step {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 11px;
	background: linear-gradient(145deg, var(--ssa-kw-brand), #4196bb);
	box-shadow: 0 7px 16px rgba(52, 123, 159, .18);
	color: #fff;
	font-size: 11px;
	font-weight: 850;
}

.ssa-kw-entitlement {
	padding: 7px 12px;
	border: 1px solid #bcdce8;
	border-radius: 999px;
	background: #fff;
	color: var(--ssa-kw-brand-dark);
	font-size: 12px;
	font-weight: 800;
}

.ssa-kw form {
	margin: 0;
	padding: 27px;
}

.ssa-kw label > span:first-child {
	display: block;
	margin-bottom: 8px;
	color: var(--ssa-kw-title);
	font-size: 13px;
	font-weight: 800;
}

.ssa-kw textarea,
.ssa-kw select {
	width: 100%;
	margin: 0;
	border: 1px solid #cbdde5;
	border-radius: 12px;
	outline: 0;
	background: #fbfdfe;
	box-shadow: inset 0 1px 2px rgba(42, 72, 90, .025);
	color: var(--ssa-kw-title);
	transition: border-color .18s, box-shadow .18s, background-color .18s;
}

.ssa-kw textarea:focus,
.ssa-kw select:focus {
	border-color: #73b6d2;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(91, 169, 201, .13);
}

.ssa-kw textarea.has-error {
	border-color: #cf6d68;
	box-shadow: 0 0 0 4px rgba(207, 109, 104, .10);
}

.ssa-kw textarea {
	min-height: 126px;
	padding: 14px 16px;
	resize: vertical;
	font-size: 15px;
	line-height: 1.65;
}

.ssa-kw textarea::placeholder {
	color: #9aabb5;
}

.ssa-kw-keywords-field > small {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 8px;
	color: #8496a2;
	font-size: 11px;
}

.ssa-kw-keywords-field > small b {
	color: var(--ssa-kw-brand);
	font-weight: 850;
}

.ssa-kw-keywords-field > small em {
	margin-left: auto;
	color: #7c909d;
	font-style: normal;
}

.ssa-kw-select-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 20px;
}

.ssa-kw select {
	height: 48px;
	padding: 0 42px 0 14px;
	font-size: 14px;
}

.ssa-kw-form-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
	margin-top: 24px;
	padding-top: 23px;
	border-top: 1px solid #e5eef2;
}

.ssa-kw-hints {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 17px;
}

.ssa-kw-hints span {
	color: #748995;
	font-size: 11px;
	font-weight: 600;
}

.ssa-kw-hints i {
	display: inline-grid;
	width: 17px;
	height: 17px;
	margin-right: 5px;
	place-items: center;
	border-radius: 50%;
	background: #e6f4ee;
	color: #318169;
	font-size: 9px;
	font-style: normal;
}

.ssa-kw-submit {
	display: inline-flex;
	min-width: 172px;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	gap: 13px;
	margin: 0;
	padding: 12px 20px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--ssa-kw-brand), var(--ssa-kw-brand-dark));
	box-shadow: 0 11px 24px rgba(40, 95, 123, .22);
	color: #fff;
	font-size: 14px;
	font-weight: 850;
	letter-spacing: .01em;
	cursor: pointer;
	transition: transform .18s, box-shadow .18s, opacity .18s;
}

.ssa-kw-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 29px rgba(40, 95, 123, .28);
}

.ssa-kw-submit:disabled {
	opacity: .68;
	cursor: wait;
}

.ssa-kw-submit.is-loading b {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, .42);
	border-top-color: #fff;
	border-radius: 50%;
	font-size: 0;
	animation: ssa-kw-spin .7s linear infinite;
}

@keyframes ssa-kw-spin {
	to { transform: rotate(360deg); }
}

.ssa-kw-message {
	min-height: 0;
	margin: 13px 0 0;
	padding: 0;
	color: var(--ssa-kw-muted);
	font-size: 12px;
	font-weight: 650;
}

.ssa-kw-message:empty {
	display: none;
}

.ssa-kw-message.is-error,
.ssa-kw-message.is-success,
.ssa-kw-message.is-loading {
	padding: 10px 12px;
	border-radius: 9px;
}

.ssa-kw-message.is-error { background: #fff1ef; color: #a84843; }
.ssa-kw-message.is-success { background: #eaf7f1; color: #28745d; }
.ssa-kw-message.is-loading { background: #edf6fa; color: var(--ssa-kw-brand-dark); }

.ssa-kw-results {
	margin-top: 25px;
}

.ssa-kw-results-head {
	background: #fff;
}

.ssa-kw-results-head > div {
	flex-wrap: wrap;
}

.ssa-kw-results-head p {
	flex-basis: 100%;
	margin: -5px 0 0 48px;
	color: var(--ssa-kw-muted);
	font-size: 11px;
}

.ssa-kw-export {
	min-height: 38px;
	margin: 0;
	padding: 8px 13px;
	border: 1px solid #c8dce5;
	border-radius: 9px;
	background: #f5fafc;
	color: var(--ssa-kw-brand-dark);
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.ssa-kw-table-wrap {
	overflow-x: auto;
	padding: 0 7px 7px;
}

.ssa-kw table {
	width: 100%;
	min-width: 940px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.ssa-kw th,
.ssa-kw td {
	padding: 15px 14px;
	border: 0;
	border-bottom: 1px solid #e5eef2;
	background: transparent;
	color: #536b79;
	font-size: 12px;
	line-height: 1.45;
	text-align: left;
	white-space: nowrap;
}

.ssa-kw th {
	background: #f7fafc;
	color: #78909d;
	font-size: 10px;
	font-weight: 850;
	letter-spacing: .03em;
}

.ssa-kw th button {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-transform: none;
	cursor: pointer;
}

.ssa-kw th button:hover,
.ssa-kw th button.is-active {
	color: var(--ssa-kw-brand-dark);
}

.ssa-kw th button span {
	color: #9aadb7;
	font-size: 11px;
}

.ssa-kw th button.is-active span {
	color: var(--ssa-kw-brand);
}

.ssa-kw tbody tr:last-child td {
	border-bottom: 0;
}

.ssa-kw tbody tr:hover td {
	background: #f8fbfc;
}

.ssa-kw td.ssa-kw-keyword,
.ssa-kw td.ssa-kw-volume {
	color: var(--ssa-kw-title);
	font-weight: 800;
}

.ssa-kw-type,
.ssa-kw-difficulty {
	display: inline-flex;
	min-height: 25px;
	align-items: center;
	justify-content: center;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 850;
	line-height: 1;
}

.ssa-kw-type.is-seed { background: #e4f2f8; color: #2d6e8d; }
.ssa-kw-type.is-expanded { background: #f1f4f6; color: #6f818c; }
.ssa-kw-difficulty.is-easy { background: #e8f6ef; color: #28745d; }
.ssa-kw-difficulty.is-medium { background: #fff5df; color: #9a671e; }
.ssa-kw-difficulty.is-hard { background: #fff0e8; color: #b25d31; }
.ssa-kw-difficulty.is-very-hard { background: #ffebe9; color: #ae4542; }
.ssa-kw-difficulty.is-none { background: #f1f4f6; color: #7b8c96; }

.ssa-kw-benefits {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-top: 22px;
}

.ssa-kw-benefits > div {
	display: grid;
	grid-template-columns: 39px 1fr;
	gap: 2px 11px;
	align-items: center;
	padding: 14px 16px;
	border: 1px solid rgba(205, 224, 232, .85);
	border-radius: 14px;
	background: rgba(255, 255, 255, .58);
}

.ssa-kw-benefits > div > span {
	display: grid;
	width: 39px;
	height: 39px;
	grid-row: 1 / 3;
	place-items: center;
	border-radius: 11px;
	background: #dff1f8;
	color: var(--ssa-kw-brand-dark);
	font-size: 15px;
	font-weight: 900;
}

.ssa-kw-benefits strong {
	color: var(--ssa-kw-title);
	font-size: 13px;
}

.ssa-kw-benefits small {
	color: #8395a0;
	font-size: 10px;
}

html.ssa-kw-modal-open,
html.ssa-kw-modal-open body {
	overflow: hidden;
}

.ssa-kw-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
}

.ssa-kw-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 48, 62, .67);
	backdrop-filter: blur(5px);
}

.ssa-kw-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(600px, 100%);
	padding: 31px;
	border: 1px solid rgba(210, 228, 236, .95);
	border-radius: 23px;
	background: #fff;
	box-shadow: 0 28px 85px rgba(20, 43, 57, .31);
	text-align: center;
}

.ssa-kw-modal-close {
	position: absolute;
	top: 13px;
	right: 13px;
	display: grid;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: #edf4f7;
	color: #617987;
	font-size: 22px;
	font-weight: 400;
	cursor: pointer;
}

.ssa-kw-modal-icon {
	display: grid;
	width: 52px;
	height: 52px;
	margin: 0 auto 13px;
	place-items: center;
	border-radius: 16px;
	background: linear-gradient(145deg, var(--ssa-kw-brand), var(--ssa-kw-brand-dark));
	box-shadow: 0 11px 24px rgba(40, 95, 123, .22);
	color: #fff;
	font-size: 20px;
	font-weight: 900;
}

.ssa-kw-modal h2 {
	margin: 0;
	color: var(--ssa-kw-title);
	font-size: 25px;
	font-weight: 850;
	letter-spacing: -.03em;
}

.ssa-kw-modal-dialog > p {
	max-width: 450px;
	margin: 9px auto 0;
	color: var(--ssa-kw-muted);
	font-size: 13px;
	line-height: 1.65;
}

.ssa-kw-modal-balance {
	display: inline-block;
	margin-top: 14px;
	padding: 6px 11px;
	border-radius: 8px;
	background: #edf6fa;
	color: #69808e;
	font-size: 11px;
}

.ssa-kw-modal-balance strong {
	color: var(--ssa-kw-brand-dark);
	font-size: 14px;
}

.ssa-kw-package-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-top: 22px;
}

.ssa-kw-package {
	position: relative;
	display: grid;
	gap: 7px;
	padding: 19px 10px 15px;
	border: 1px solid #d5e4ea;
	border-radius: 14px;
	background: #fbfdfe;
	color: var(--ssa-kw-title) !important;
	text-decoration: none !important;
	transition: transform .18s, border-color .18s, box-shadow .18s;
}

.ssa-kw-package:hover {
	transform: translateY(-3px);
	border-color: #8cc6dc;
	box-shadow: 0 11px 24px rgba(45, 93, 117, .11);
}

.ssa-kw-package.is-featured {
	border: 2px solid var(--ssa-kw-brand);
	background: #edf8fb;
}

.ssa-kw-package em {
	position: absolute;
	top: -10px;
	left: 50%;
	padding: 3px 9px;
	transform: translateX(-50%);
	border-radius: 999px;
	background: var(--ssa-kw-brand);
	color: #fff;
	font-size: 9px;
	font-style: normal;
	font-weight: 850;
}

.ssa-kw-package > strong {
	font-size: 23px;
	font-weight: 900;
}

.ssa-kw-package > strong small {
	font-size: 11px;
	font-weight: 700;
}

.ssa-kw-package > span,
.ssa-kw-package .woocommerce-Price-amount {
	color: var(--ssa-kw-brand-dark);
	font-size: 14px;
	font-weight: 800;
}

.ssa-kw-modal-note {
	display: block;
	margin-top: 15px;
	color: #8b9ca6;
	font-size: 10px;
}

.ssa-kw-modal-fallback {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
	padding: 10px 22px;
	border-radius: 11px;
	background: var(--ssa-kw-brand);
	color: #fff !important;
	font-weight: 800;
	text-decoration: none !important;
}

@media (max-width: 849px) {
	.ssa-kw { padding-top: 38px; }
	.ssa-kw-hero { align-items: stretch; flex-direction: column; gap: 22px; }
	.ssa-kw-account-card { width: 100%; min-width: 0; }
	.ssa-kw-benefits { grid-template-columns: 1fr; }
}

@media (max-width: 549px) {
	.ssa-kw { width: min(100% - 22px, 1180px); padding: 29px 0 42px; }
	.ssa-kw-hero h1 { font-size: 31px; }
	.ssa-kw-hero-copy > p { font-size: 14px; }
	.ssa-kw-search-card, .ssa-kw-results { border-radius: 17px; }
	.ssa-kw-card-heading, .ssa-kw-results-head { padding: 17px; }
	.ssa-kw form { padding: 18px 16px; }
	.ssa-kw-select-grid { grid-template-columns: 1fr; }
	.ssa-kw-form-footer { align-items: stretch; flex-direction: column; }
	.ssa-kw-submit { width: 100%; }
	.ssa-kw-results-head { align-items: flex-start; }
	.ssa-kw-package-grid { grid-template-columns: 1fr; }
	.ssa-kw-modal-dialog { max-height: calc(100vh - 24px); overflow-y: auto; padding: 27px 18px 22px; }
	.ssa-kw-keywords-field > small em { display: none; }
}
