/**
 * TabAPI Traffic Dashboard Stylesheet for Jiao.se (Maddos Theme)
 * Matches Maddos primary dark (#262626) & signature orange accent (#f28705)
 */

.jiaose-traffic-board {
	margin: 22px 0 18px;
	background: #ffffff;
	border: 1px solid #e2e4e8;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
	color: #2c3338;
}

/* Header Bar */
.jiaose-tb-header {
	background-color: #262626;
	border-bottom: 3px solid #f28705;
	color: #ffffff;
	padding: 12px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

.jiaose-tb-header-left {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.jiaose-tb-title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	line-height: 1.4 !important;
	border: none !important;
}

.jiaose-tb-title i {
	color: #f28705;
	margin-right: 6px;
}

.jiaose-tb-domain {
	color: #f28705;
	font-weight: 600;
	font-size: 14px;
	margin: 0 4px;
}

/* Tier Badges */
.jiaose-tb-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 99px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

.jiaose-tb-badge-fire {
	background: linear-gradient(135deg, #ff4d4f, #f28705);
	color: #ffffff;
}

.jiaose-tb-badge-star {
	background: #f28705;
	color: #ffffff;
}

.jiaose-tb-badge-gem {
	background: #1890ff;
	color: #ffffff;
}

.jiaose-tb-badge-seed {
	background: #52c41a;
	color: #ffffff;
}

.jiaose-tb-header-right {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 12.5px;
	color: #d9d9d9;
}

.jiaose-tb-header-right i {
	color: #f28705;
	margin-right: 4px;
}

/* Body Container */
.jiaose-tb-body {
	padding: 18px 18px 16px;
	background: #fbfbfc;
}

/* 4 KPI Cards */
.jiaose-tb-kpi-row {
	margin-left: -8px;
	margin-right: -8px;
}

.jiaose-tb-kpi-col {
	padding-left: 8px;
	padding-right: 8px;
	margin-bottom: 14px;
}

.jiaose-tb-kpi-card {
	background: #ffffff;
	border: 1px solid #eaecef;
	border-top: 3px solid #262626;
	border-radius: 5px;
	padding: 13px 14px;
	height: 100%;
	min-height: 104px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.jiaose-tb-kpi-col:first-child .jiaose-tb-kpi-card {
	border-top-color: #f28705;
}

.jiaose-tb-kpi-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.jiaose-tb-kpi-label {
	font-size: 12.5px;
	color: #6c757d;
	font-weight: 600;
	margin-bottom: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jiaose-tb-kpi-label i {
	color: #f28705;
	margin-right: 5px;
}

.jiaose-tb-kpi-value {
	font-size: 22px;
	font-weight: 800;
	color: #1f2329;
	line-height: 1.25;
	margin-bottom: 7px;
}

.jiaose-tb-kpi-value.jiaose-tb-highlight {
	color: #d46b08;
}

.jiaose-tb-kpi-value small {
	font-size: 13px;
	font-weight: 600;
	color: #666;
}

.jiaose-tb-split-val {
	font-size: 13px !important;
	color: #555 !important;
	margin-left: 3px;
}

.jiaose-tb-kpi-foot {
	font-size: 12px;
	line-height: 1.3;
}

/* Subtags & Trend Pills */
.jiaose-tb-subtag {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 3px;
	font-size: 11.5px;
	font-weight: 600;
}

.jiaose-tb-good {
	background: #f6ffed;
	color: #237804;
	border: 1px solid #b7eb8f;
}

.jiaose-tb-neutral {
	background: #f0f5ff;
	color: #1d39c4;
	border: 1px solid #adc6ff;
}

.jiaose-tb-warn {
	background: #fff7e6;
	color: #d46b08;
	border: 1px solid #ffd591;
}

.jiaose-tb-trend-up {
	display: inline-block;
	background: #f6ffed;
	color: #237804;
	border: 1px solid #b7eb8f;
	padding: 2px 7px;
	border-radius: 3px;
	font-weight: 700;
	font-size: 11.5px;
}

.jiaose-tb-trend-down {
	display: inline-block;
	background: #fff2f0;
	color: #cf1322;
	border: 1px solid #ffccc7;
	padding: 2px 7px;
	border-radius: 3px;
	font-weight: 700;
	font-size: 11.5px;
}

.jiaose-tb-trend-flat {
	display: inline-block;
	background: #f5f5f5;
	color: #595959;
	padding: 2px 7px;
	border-radius: 3px;
	font-size: 11.5px;
}

/* 2-Column Detail Panels */
.jiaose-tb-detail-row {
	margin-left: -8px;
	margin-right: -8px;
}

.jiaose-tb-detail-col {
	padding-left: 8px;
	padding-right: 8px;
	margin-bottom: 14px;
}

.jiaose-tb-panel {
	background: #ffffff;
	border: 1px solid #eaecef;
	border-radius: 5px;
	padding: 14px 16px;
	height: 100%;
}

.jiaose-tb-panel-title {
	margin: 0 0 12px !important;
	padding: 0 0 8px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #262626 !important;
	border-bottom: 1px dashed #e5e7eb !important;
}

.jiaose-tb-panel-title i {
	color: #f28705;
	margin-right: 6px;
}

/* Bars & Region Progress */
.jiaose-tb-bar-row,
.jiaose-tb-region-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 9px;
	font-size: 13px;
}

.jiaose-tb-bar-month {
	width: 68px;
	flex-shrink: 0;
	color: #555;
	font-weight: 600;
	font-family: Consolas, Monaco, monospace;
}

.jiaose-tb-region-name {
	width: 92px;
	flex-shrink: 0;
	color: #333;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jiaose-tb-flag {
	margin-right: 4px;
}

.jiaose-tb-code {
	display: inline-block;
	background: #262626;
	color: #f28705;
	font-size: 11px;
	font-weight: 700;
	padding: 1px 5px;
	border-radius: 3px;
	margin-right: 6px;
	font-family: Consolas, Monaco, monospace;
	line-height: 1.3;
}

.jiaose-tb-bar-track {
	flex: 1;
	height: 12px;
	background: #f0f2f5;
	border-radius: 99px;
	overflow: hidden;
}

.jiaose-tb-bar-fill {
	height: 100%;
	background: #8c8c8c;
	border-radius: 99px;
	transition: width 0.3s ease;
}

.jiaose-tb-bar-row.is-latest .jiaose-tb-bar-fill {
	background: linear-gradient(90deg, #f28705, #ff6b00);
}

.jiaose-tb-bar-row.is-latest .jiaose-tb-bar-month,
.jiaose-tb-bar-row.is-latest .jiaose-tb-bar-num {
	color: #d46b08;
	font-weight: 700;
}

.jiaose-tb-bar-fill.jiaose-tb-bar-region {
	background: linear-gradient(90deg, #262626, #f28705);
}

.jiaose-tb-bar-num {
	width: 88px;
	flex-shrink: 0;
	text-align: right;
	font-size: 12.5px;
	color: #333;
	font-weight: 600;
}

.jiaose-tb-region-pct {
	width: 52px;
	flex-shrink: 0;
	text-align: right;
	font-size: 12.5px;
	font-weight: 700;
	color: #262626;
}

.jiaose-tb-panel-note {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid #f0f0f0;
	font-size: 12px;
	color: #595959;
}

.jiaose-tb-panel-note i {
	color: #f28705;
	margin-right: 4px;
}

/* Bottom E-E-A-T Summary Box */
.jiaose-tb-summary {
	background: #fff9f2;
	border: 1px solid #ffe0b2;
	border-left: 4px solid #f28705;
	border-radius: 4px;
	padding: 12px 15px;
	margin-top: 2px;
}

.jiaose-tb-summary-title {
	font-size: 13.5px;
	font-weight: 700;
	color: #262626;
	margin-bottom: 5px;
}

.jiaose-tb-summary-title i {
	color: #f28705;
	margin-right: 5px;
}

.jiaose-tb-summary-text {
	margin: 0 !important;
	font-size: 13.5px;
	line-height: 1.7;
	color: #3c4043;
	text-align: justify;
}

.jiaose-tb-summary-text code {
	background: rgba(242, 135, 5, 0.12);
	color: #b25000;
	padding: 1px 5px;
	border-radius: 3px;
}

/* Responsive adjustments for Mobile (<768px) */
@media (max-width: 767px) {
	.jiaose-tb-header {
		padding: 10px 12px;
	}
	.jiaose-tb-title {
		font-size: 14.5px !important;
	}
	.jiaose-tb-body {
		padding: 12px 10px;
	}
	.jiaose-tb-kpi-value {
		font-size: 18px;
	}
	.jiaose-tb-kpi-card {
		padding: 10px;
		min-height: 92px;
	}
	.jiaose-tb-bar-num {
		width: 78px;
		font-size: 12px;
	}
}

.jiaose-traffic-board .jiaose-tb-disclaimer {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.6;
	color: #888;
}
.jiaose-traffic-board .jiaose-tb-disclaimer .fa-circle-info {
	margin-right: 4px;
	color: #aaa;
}

/* ==========================================================================
 * Phase 2: Top-Right Quick Spec Card (.jiaose-quick-spec) &
 *          Bottom Full-Width E-E-A-T Deep Review (.jiaose-eeat-review)
 * ========================================================================== */

.maddos-content-scroll:has(.jiaose-quick-spec),
.maddos-post-excerpt.has-quick-spec .maddos-content-scroll {
	max-height: none !important;
	height: auto !important;
	overflow: visible !important;
	margin: 12px 0 6px !important;
}

.jiaose-quick-lead {
	font-size: 14px;
	line-height: 1.65;
	color: #262626;
	background: #fff9f2;
	border-left: 4px solid #f28705;
	padding: 9px 12px;
	border-radius: 0 4px 4px 0;
	margin: 0 0 10px !important;
	font-weight: 500;
}

.jiaose-quick-lead strong {
	color: #d46b08;
}

.jiaose-quick-spec {
	background: #fafbfc;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 10px 12px;
	margin-top: 4px;
}

.jiaose-qs-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #1f2937;
	padding-bottom: 8px;
	margin-bottom: 8px;
	border-bottom: 1px dashed #e5e7eb;
}

.jiaose-qs-title i {
	color: #f28705;
	margin-right: 4px;
}

.jiaose-qs-verified {
	font-size: 11.5px;
	font-weight: 600;
	color: #15803d;
	background: #dcfce7;
	padding: 2px 8px;
	border-radius: 12px;
}

.jiaose-qs-verified i {
	color: #15803d;
}

ul.jiaose-qs-grid {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

ul.jiaose-qs-grid > br,
ul.jiaose-qs-grid > p:empty {
	display: none !important;
}

ul.jiaose-qs-grid > li,
.jiaose-qs-item {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 5px;
	padding: 7px 10px;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 3px;
	list-style: none !important;
}

.qs-label,
.jiaose-qs-label {
	font-size: 11.5px;
	color: #6b7280;
	font-weight: 600;
	display: block;
}

.qs-label i,
.jiaose-qs-label i {
	color: #f28705;
	margin-right: 4px;
	width: 13px;
	text-align: center;
}

.qs-val,
.jiaose-qs-val {
	font-size: 12.5px;
	font-weight: 700;
	color: #1f2937;
	line-height: 1.4;
	display: block;
}

.qs-val small {
	font-weight: 400;
	color: #6b7280;
	font-size: 11.5px;
}

.qs-tag {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	margin-right: 3px;
}

.qs-tag.is-good,
.jiaose-qs-val.is-good {
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
}

.qs-tag.is-free,
.jiaose-qs-val.is-free {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.qs-tag.is-mid,
.qs-tag.is-warn,
.jiaose-qs-val.is-warn {
	background: #fffbeb;
	color: #b45309;
	border: 1px solid #fde68a;
}

/* Bottom Full-Width E-E-A-T Deep Review Container */
.jiaose-eeat-review {
	background: #ffffff;
	border: 1px solid #e2e5e9;
	border-radius: 6px;
	padding: 22px 24px;
	margin: 18px 0 12px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
	color: #2c3e50;
	line-height: 1.8;
	font-size: 14.5px;
}

.jiaose-eeat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding-bottom: 12px;
	margin-bottom: 16px;
	border-bottom: 2px solid #f3f4f6;
}

.jiaose-eeat-header h2 {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #1e1e1e !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	line-height: 1.4 !important;
}

.jiaose-eeat-header h2 i {
	color: #f28705;
	margin-right: 6px;
}

.jiaose-eeat-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
	color: #c2410c;
	border: 1px solid #fed7aa;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
}

.jiaose-eeat-review h3,
.jiaose-eeat-review > h2 {
	font-size: 16.5px !important;
	font-weight: 700 !important;
	color: #1e1e1e !important;
	margin: 22px 0 12px !important;
	padding: 0 0 7px 11px !important;
	border-left: 4px solid #f28705 !important;
	border-bottom: 1px solid #f0f0f0 !important;
	line-height: 1.4 !important;
}

.jiaose-eeat-review h3 i,
.jiaose-eeat-review > h2 i {
	color: #f28705;
	margin-right: 6px;
}

.jiaose-eeat-review p {
	margin: 0 0 12px !important;
	text-align: justify;
}

.jiaose-eeat-review code {
	background: #fff1f0;
	color: #cf1322;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 13px;
}

.jiaose-eeat-review a {
	color: #d46b08;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.jiaose-eeat-review a:hover {
	color: #f28705;
}

/* Pros & Cons 2-Column Comparison Grid (neutralizes Bootstrap .row pseudo-elements & col-md-6 50% width) */
.jiaose-pros-cons,
.row.jiaose-pros-cons {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin: 18px 0 22px !important;
}

.jiaose-pros-cons::before,
.jiaose-pros-cons::after,
.row.jiaose-pros-cons::before,
.row.jiaose-pros-cons::after {
	display: none !important;
	content: none !important;
}

.jiaose-pros-cons > br,
.jiaose-pros-cons > p:empty {
	display: none !important;
}

.jiaose-pros-cons > .col-md-6,
.jiaose-pros-cons > div {
	width: 100% !important;
	float: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.jiaose-pc-box {
	border-radius: 6px;
	padding: 14px 16px;
	height: 100%;
	box-sizing: border-box;
}

.jiaose-pc-box.is-pros,
.jiaose-pc-pros {
	background: #f6ffed;
	border: 1px solid #b7eb8f;
	border-top: 3px solid #52c41a;
}

.jiaose-pc-box.is-cons,
.jiaose-pc-cons {
	background: #fff2f0;
	border: 1px solid #ffccc7;
	border-top: 3px solid #ff4d4f;
}

.jiaose-pc-box h4,
.jiaose-pc-title {
	font-size: 15px !important;
	font-weight: 700 !important;
	margin: 0 0 10px !important;
	padding: 0 !important;
	display: flex;
	align-items: center;
	gap: 6px;
	border: none !important;
}

.jiaose-pc-box.is-pros h4,
.jiaose-pc-pros .jiaose-pc-title {
	color: #237804 !important;
}

.jiaose-pc-box.is-cons h4,
.jiaose-pc-cons .jiaose-pc-title {
	color: #cf1322 !important;
}

.jiaose-pc-box ul,
.jiaose-pc-list {
	margin: 0 !important;
	padding-left: 18px !important;
	font-size: 13.5px;
	line-height: 1.7;
}

.jiaose-pc-box ul li,
.jiaose-pc-list li {
	margin-bottom: 6px;
}

.jiaose-pc-box ul li:last-child,
.jiaose-pc-list li:last-child {
	margin-bottom: 0;
}

/* FAQ Section */
.jiaose-faq-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
}

.jiaose-faq-list > br,
.jiaose-faq-list > p:empty {
	display: none !important;
}

.jiaose-faq-item {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 5px;
	padding: 12px 15px;
}

.jiaose-faq-item h4,
.jiaose-faq-q {
	font-size: 14.5px !important;
	font-weight: 700 !important;
	color: #1f2937 !important;
	margin: 0 0 6px !important;
	padding: 0 !important;
}

.jiaose-faq-item h4 i,
.jiaose-faq-q i {
	color: #f28705;
	margin-right: 6px;
}

.jiaose-faq-item p,
.jiaose-faq-a {
	font-size: 13.5px;
	color: #4b5563;
	line-height: 1.7;
	margin: 0 !important;
}

.jiaose-review-foot {
	margin-top: 18px;
	padding-top: 10px;
	border-top: 1px dashed #e5e7eb;
	font-size: 12px;
	color: #8c8c8c;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

@media (max-width: 767px) {
	ul.jiaose-qs-grid,
	.jiaose-pros-cons,
	.row.jiaose-pros-cons {
		grid-template-columns: 1fr !important;
	}
	.jiaose-eeat-review {
		padding: 15px 14px;
	}
}
