/*
Theme Name: Proplead
Theme URI: https://proplead.trade/
Author: Proplead
Description: Futures Prop Firm 中文资料库定制主题第一版。
Version: 0.1.4
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: proplead
*/

:root {
	color-scheme: light dark;
	--pl-ink: #15241f;
	--pl-ink-strong: #10241f;
	--pl-muted: #63736d;
	--pl-accent: #2fa98c;
	--pl-accent-2: #14745f;
	--pl-accent-soft: #e0f4ed;
	--pl-blue-soft: #edf3f0;
	--pl-paper: #f4f7f5;
	--pl-white: #ffffff;
	--pl-line: #dce6e1;
	--pl-warning: #fff5df;
	--pl-warning-ink: #63736d;
	--pl-deep: #10241f;
	--pl-page-current-bg: #15241f;
	--pl-page-current-ink: #ffffff;
	--pl-radius: 18px;
	--pl-shadow: 0 18px 45px rgba(16, 36, 31, 0.08);
}

@media (prefers-color-scheme: dark) {
	:root {
		--pl-ink: #edf5f1;
		--pl-ink-strong: #edf5f1;
		--pl-muted: #afc0b8;
		--pl-accent-soft: #1b3c32;
		--pl-blue-soft: #1e2b27;
		--pl-paper: #101817;
		--pl-white: #182320;
		--pl-line: #31413a;
		--pl-warning: #473820;
		--pl-warning-ink: #f3d495;
		--pl-page-current-bg: #1e2b27;
		--pl-page-current-ink: #edf5f1;
		--pl-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
	}
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--pl-paper);
	color: var(--pl-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	font-size: 16px;
	line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pl-accent-2); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.site-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 20; top: -60px; left: 12px; padding: 10px 14px; background: var(--pl-white); color: var(--pl-ink); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { background: var(--pl-deep); color: #f5fbff; border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { position: relative; display: grid; place-items: center; width: 39px; height: 39px; color: #08271e; background: linear-gradient(145deg, var(--pl-accent), #70d3ae); border-radius: 11px; font-weight: 800; letter-spacing: -1px; font-size: 18px; }
.brand-mark-image { overflow: hidden; padding: 0; background: transparent; }
.brand-mark-image img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.brand-arrow { position: absolute; right: 3px; top: 0; font-size: 12px; color: #08271e; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo-link img { display: block; width: auto; max-width: 190px; max-height: 54px; object-fit: contain; }
.brand-custom-logo { display: inline-flex; align-items: center; }
.brand-custom-logo img { display: block; width: auto; max-width: 190px; max-height: 54px; object-fit: contain; }
.brand-word { display: block; color: #fff; font-size: 18px; font-weight: 750; letter-spacing: -.45px; line-height: 1.1; }
.brand-word span { color: #70d3ae; }
.brand-caption { display: block; margin-top: 4px; color: #9ab9ac; font-size: 9px; letter-spacing: 1.2px; }
.primary-nav { display: flex; align-items: center; gap: 5px; }
.primary-nav ul { display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 13px; color: #bed0c8; border-radius: 10px; font-size: 13px; font-weight: 600; transition: background .16s ease, color .16s ease; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: #fff; background: rgba(255,255,255,.09); }
.header-action { display: inline-flex; align-items: center; justify-content: center; min-height: 41px; padding: 0 15px; border-radius: 10px; color: #09291f; background: var(--pl-accent); font-size: 13px; font-weight: 750; white-space: nowrap; }
.header-action:hover { color: #08271e; background: #91e1c2; }
.mobile-menu { display: none; }

.site-main { min-height: 60vh; padding: 38px 0 76px; }
.eyebrow { color: #14745f; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
h1, h2, h3, h4 { color: var(--pl-ink-strong); margin: 0; line-height: 1.22; letter-spacing: -.045em; }
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 780; }
h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 740; }
h3 { font-size: 18px; font-weight: 720; }
p { margin: 0 0 1em; }
.lede { color: var(--pl-muted); font-size: 17px; line-height: 1.75; }
.section { margin-top: 62px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading p { color: var(--pl-muted); margin: 7px 0 0; font-size: 14px; }
.text-link { color: #14745f; font-weight: 750; font-size: 13px; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.button-row { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 0 18px; border: 1px solid var(--pl-line); border-radius: 11px; color: var(--pl-ink); background: var(--pl-white); font-size: 14px; font-weight: 750; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { color: var(--pl-ink); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15, 42, 68, .1); }
.button-primary { color: #09291f; border-color: transparent; background: #70d3ae; }
.button-primary:hover { color: #09291f; background: #91e1c2; }
.button-dark { color: #f7fbff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
.button-dark:hover { color: #fff; background: rgba(255,255,255,.14); }
.pill { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 10px; border-radius: 99px; background: var(--pl-accent-soft); color: #14745f; font-size: 11px; font-weight: 800; }
.pill-blue { background: var(--pl-blue-soft); color: #466b5e; }
.notice { padding: 13px 16px; border-left: 3px solid var(--pl-accent); border-radius: 0 11px 11px 0; color: var(--pl-muted); background: var(--pl-white); font-size: 12px; }

.home-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(270px, .72fr); gap: 44px; align-items: center; overflow: hidden; min-height: 430px; padding: clamp(30px, 5.4vw, 64px); border-radius: 24px; color: #f4fbff; background: linear-gradient(120deg, #10241f, #1a3a31); box-shadow: 0 24px 55px rgba(16, 36, 31, .14); }
.home-hero:after { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(121,225,185,.16); border-radius: 50%; right: -85px; top: -120px; box-shadow: 0 0 0 28px rgba(121,225,185,.035), 0 0 0 58px rgba(121,225,185,.025); pointer-events: none; }
.hero-content { position: relative; z-index: 1; }
.hero-content .eyebrow { color: #88d9b9; margin-bottom: 15px; }
.hero-content h1 { color: #fff; max-width: 650px; }
.hero-content p { max-width: 620px; color: #b9cec5; margin: 17px 0 23px; line-height: 1.8; font-size: 15px; }
.hero-panel { position: relative; z-index: 1; padding: 21px; border: 1px solid rgba(255,255,255,.14); border-radius: 17px; background: rgba(8,25,20,.43); backdrop-filter: blur(8px); }
.hero-panel-title { color: #9ab9ac; font-size: 10px; font-weight: 800; letter-spacing: 1.25px; margin-bottom: 10px; text-transform: uppercase; }
.path-step { display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 11px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.1); color: #f4f9ff; font-size: 13px; font-weight: 650; }
.path-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #94f0db; background: rgba(25,211,176,.16); font-size: 11px; }
.path-arrow { color: #82aa9a; font-size: 18px; }
.hero-search { display: flex; gap: 8px; max-width: 600px; margin-top: 23px; padding: 6px; border-radius: 12px; background: #fff; }
.hero-search input { flex: 1; min-width: 0; min-height: 43px; padding: 0 12px; border: 0; outline: 0; color: #17314d; background: transparent; font-size: 13px; }
.hero-search .button { min-height: 43px; }

.starter-grid, .guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.starter-card, .guide-card { display: flex; flex-direction: column; min-height: 196px; padding: 21px; border: 1px solid var(--pl-line); border-radius: var(--pl-radius); background: var(--pl-white); box-shadow: 0 8px 22px rgba(16,36,31,.035); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.starter-card:hover, .guide-card:hover { transform: translateY(-3px); border-color: #a4e5d7; box-shadow: var(--pl-shadow); }
.card-kicker { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.card-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #14745f; background: var(--pl-accent-soft); font-size: 12px; font-weight: 850; }
.card-arrow { color: #14745f; font-size: 18px; }
.starter-card p, .guide-card p { color: var(--pl-muted); font-size: 13px; line-height: 1.7; margin: 8px 0 0; }
.card-meta { display: flex; gap: 8px; align-items: center; color: var(--pl-muted); font-size: 11px; margin-top: auto; padding-top: 18px; }
.topic-list { display: flex; flex-wrap: wrap; gap: 9px; }
.topic-link { display: inline-flex; align-items: center; min-height: 39px; padding: 0 14px; border: 1px solid var(--pl-line); border-radius: 99px; background: var(--pl-white); color: var(--pl-ink); font-size: 12px; font-weight: 700; }
.topic-link:hover { border-color: #8ad9c8; color: #14745f; background: var(--pl-accent-soft); }
.topic-archive-filters { margin-bottom: 25px; }
.topic-link.is-current { border-color: var(--pl-accent); color: #14745f; background: var(--pl-accent-soft); }
.firm-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.firm-card { display: flex; flex-direction: column; min-height: 228px; padding: 20px; border: 1px solid var(--pl-line); border-radius: var(--pl-radius); background: var(--pl-white); box-shadow: 0 8px 22px rgba(16,36,31,.035); }
.firm-card-top { display: flex; align-items: center; gap: 12px; }
.firm-monogram { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 13px; color: var(--pl-accent-2); background: var(--pl-accent-soft); font-size: 14px; font-weight: 850; }
.firm-card h3 { font-size: 16px; }
.firm-card-top p { margin: 3px 0 0; color: var(--pl-muted); font-size: 11px; }
.firm-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.firm-card-summary { margin: 13px 0 0; color: var(--pl-muted); font-size: 12px; line-height: 1.65; }
.firm-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.verified-label { color: var(--pl-muted); font-size: 10px; }
.empty-state { padding: 28px; border: 1px dashed var(--pl-line); border-radius: 15px; color: var(--pl-muted); background: var(--pl-white); text-align: center; }

.page-intro { margin-bottom: 27px; }
.page-intro .eyebrow { margin-bottom: 10px; }
.page-intro .lede { max-width: 770px; margin-top: 12px; }
.breadcrumb { margin-bottom: 17px; color: var(--pl-muted); font-size: 12px; }
.breadcrumb a { color: #40584c; }
.breadcrumb span { padding: 0 8px; color: #14745f; }
.directory-toolbar { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(160px, .75fr)); gap: 10px; padding: 14px; border: 1px solid var(--pl-line); border-radius: 15px; background: var(--pl-white); box-shadow: 0 7px 20px rgba(16,36,31,.035); }
.field-control { width: 100%; min-height: 45px; padding: 0 13px; border: 1px solid var(--pl-line); border-radius: 10px; color: var(--pl-ink); background: var(--pl-paper); font-size: 13px; }
.field-control:focus { border-color: #2fa98c; outline: 3px solid rgba(47,169,140,.14); }
.directory-info { display: flex; justify-content: space-between; gap: 15px; color: var(--pl-muted); font-size: 12px; padding: 14px 2px; }
.directory-list { display: grid; gap: 11px; }
.directory-list .firm-card { min-height: 0; display: grid; grid-template-columns: minmax(190px, 1.2fr) repeat(3, minmax(100px, .65fr)) auto; align-items: center; gap: 16px; padding: 17px 19px; }
.directory-list .firm-card-top { min-width: 0; }
.directory-list .firm-card-tags { margin: 0; }
.directory-list .firm-card-summary { margin: 0; max-width: 220px; }
.directory-list .firm-card-foot { margin: 0; padding: 0; }
.firm-stat-label { display: block; color: var(--pl-muted); font-size: 10px; margin-bottom: 3px; }
.firm-stat-value { display: block; color: var(--pl-ink); font-size: 12px; font-weight: 750; }
.directory-list .firm-card[hidden] { display: none; }

.company-hero { display: flex; align-items: start; justify-content: space-between; gap: 26px; padding: 30px; border-radius: 21px; color: #f2fbff; background: linear-gradient(120deg, #10241f, #18352d); box-shadow: 0 20px 46px rgba(16,36,31,.12); }
.company-hero h1 { color: #fff; font-size: clamp(32px, 4vw, 46px); }
.company-hero .lede { max-width: 690px; color: #b9cec5; font-size: 14px; margin: 11px 0 0; }
.company-hero .eyebrow { color: #88d9b9; margin-bottom: 9px; }
.company-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
.company-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.company-tags .pill { background: rgba(58,190,145,.16); color: #a8efd2; }
.company-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .7fr); gap: 20px; align-items: start; margin-top: 20px; }
.panel { padding: 22px; border: 1px solid var(--pl-line); border-radius: 16px; background: var(--pl-white); box-shadow: 0 8px 22px rgba(16,36,31,.035); }
.panel + .panel { margin-top: 14px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.panel-heading p { margin: 5px 0 0; color: var(--pl-muted); font-size: 12px; }
.detail-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.detail-table th, .detail-table td { padding: 12px 9px; border-bottom: 1px solid var(--pl-line); text-align: left; vertical-align: top; }
.detail-table th { color: var(--pl-muted); font-size: 10px; font-weight: 750; }
.detail-table tr:last-child td { border-bottom: 0; }
.source-list { display: grid; gap: 12px; color: var(--pl-muted); font-size: 12px; }
.source-row { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.source-row strong { color: var(--pl-ink); font-weight: 700; text-align: right; }
.source-note { padding: 13px; border-radius: 11px; color: var(--pl-muted); background: var(--pl-blue-soft); font-size: 11px; }
.affiliate-note { padding: 12px 14px; border-radius: 11px; color: var(--pl-warning-ink); background: var(--pl-warning); font-size: 11px; }
.related-list { display: grid; }
.related-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--pl-line); font-size: 13px; font-weight: 700; }
.related-item:first-child { border-top: 0; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 38px; align-items: start; margin-top: 23px; }
.article-body { max-width: 760px; color: var(--pl-ink); font-size: 15px; line-height: 1.85; }
.article-body > * { max-width: 100%; }
.article-body h2 { margin: 35px 0 12px; font-size: 26px; }
.article-body h3 { margin: 26px 0 10px; font-size: 19px; }
.article-body p { margin: 0 0 17px; color: var(--pl-muted); }
.article-body strong { color: var(--pl-ink); }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin: 7px 0; }
.article-body a { color: #14745f; text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { margin: 22px 0; padding: 16px 18px; border-left: 3px solid var(--pl-accent); border-radius: 0 12px 12px 0; color: var(--pl-ink); background: var(--pl-blue-soft); }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13px; }
.article-body th, .article-body td { padding: 11px; border-bottom: 1px solid var(--pl-line); text-align: left; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--pl-muted); font-size: 11px; margin-top: 14px; }
.article-toc { position: sticky; top: 18px; padding-left: 16px; border-left: 1px solid var(--pl-line); color: var(--pl-muted); font-size: 12px; }
.article-toc strong { display: block; margin-bottom: 9px; color: var(--pl-ink); }
.article-toc a { display: block; padding: 6px 0; }
.article-toc a:hover { color: #14745f; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 28px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--pl-line); border-radius: 9px; background: var(--pl-white); font-size: 12px; }
.pagination .current { color: var(--pl-page-current-ink); border-color: var(--pl-page-current-bg); background: var(--pl-page-current-bg); }

.site-footer { padding: 32px 0; color: #aebdd0; background: var(--pl-deep); }
.footer-top { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.footer-brand { color: #fff; font-size: 17px; font-weight: 800; }
.footer-copy { max-width: 540px; color: #9cafc6; font-size: 11px; line-height: 1.75; margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; color: #d4e0ee; font-size: 11px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.11); color: #8297b1; font-size: 10px; }

@media (max-width: 920px) {
	.header-inner { flex-wrap: wrap; padding: 14px 0; gap: 12px; }
	.primary-nav { order: 3; width: 100%; justify-content: center; }
	.primary-nav a { padding: 0 10px; }
	.home-hero { grid-template-columns: 1fr; gap: 25px; }
	.hero-panel { max-width: 510px; }
	.directory-list .firm-card { grid-template-columns: minmax(180px, 1.2fr) repeat(2, minmax(90px, .7fr)) auto; }
	.directory-list .firm-stat:nth-of-type(4) { display: none; }
}
@media (max-width: 680px) {
	.site-shell { width: min(100% - 28px, 1180px); }
	.header-inner { min-height: 68px; display: grid; grid-template-columns: 1fr auto; }
	.primary-nav { display: none; }
	.header-action { display: none; }
	.mobile-menu { display: block; position: relative; }
	.mobile-menu summary { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: #fff; list-style: none; font-size: 21px; cursor: pointer; }
	.mobile-menu summary::-webkit-details-marker { display: none; }
	.mobile-menu nav { position: absolute; z-index: 12; right: 0; top: 50px; display: grid; min-width: 210px; padding: 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: #18352d; box-shadow: 0 14px 35px rgba(0,0,0,.25); }
	.mobile-menu nav a { padding: 10px 12px; border-radius: 8px; color: #bed0c8; font-size: 13px; }
	.mobile-menu nav a:hover { background: rgba(255,255,255,.09); }
	.site-main { padding: 24px 0 54px; }
	.home-hero { min-height: 0; padding: 28px 21px; border-radius: 18px; }
	.home-hero h1 { font-size: 35px; }
	.hero-content p { font-size: 14px; }
	.hero-search { flex-wrap: wrap; background: transparent; padding: 0; }
	.hero-search input { flex: 1 1 100%; min-height: 46px; border-radius: 9px; background: #fff; }
	.hero-search .button { width: 100%; }
	.section { margin-top: 43px; }
	.section-heading { align-items: start; }
	.starter-grid, .guide-grid, .firm-feature-grid, .archive-grid { grid-template-columns: 1fr; }
	.starter-card { min-height: 0; }
	.directory-toolbar { grid-template-columns: 1fr; padding: 11px; }
	.directory-info { align-items: start; }
	.directory-list .firm-card { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
	.directory-list .firm-card-top { grid-column: 1; }
	.directory-list .firm-card-tags { grid-column: 1; }
	.directory-list .firm-card-summary, .directory-list .firm-stat { display: none; }
	.directory-list .firm-card-foot { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
	.company-hero { display: block; padding: 23px 19px; }
	.company-actions { margin-top: 17px; }
	.company-layout { grid-template-columns: 1fr; }
	.panel { padding: 17px; }
	.detail-table { font-size: 11px; }
	.detail-table th, .detail-table td { padding: 9px 6px; }
	.article-layout { grid-template-columns: 1fr; gap: 20px; }
	.article-toc { position: static; order: -1; display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 12px 0; border-left: 0; border-top: 1px solid var(--pl-line); border-bottom: 1px solid var(--pl-line); }
	.article-toc strong { width: 100%; margin: 0; }
	.footer-top, .footer-bottom { display: grid; }
}
