/*
Theme Name: 出境行资讯主题
Theme URI: https://wordpress.chujingxing.com/
Author: 出境行
Description: 出境行独立 WordPress 测试站主题，保留原站内容与网址。
Version: 0.1.5
Text Domain: chujingxing
*/

:root{--site-navy:#0f5bd7;--site-deep:#0b2e6b;--site-accent:#0aa06e;--site-ink:#1a2233;--site-muted:#6b7280;--site-line:#e7eaf0;--site-paper:#f6f7f9}
body{background:var(--site-paper);color:var(--site-ink)}
.site-wrap{width:min(1200px,calc(100% - 40px));margin:0 auto}
.site-utility{background:#0a47a8;color:#e7f0ff;font-size:12px}
.site-utility .site-wrap{min-height:34px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.site-masthead{position:relative;top:auto;z-index:3;background:#fff;border:0}
.site-masthead .site-wrap{min-height:100px;display:flex;justify-content:space-between;align-items:center;gap:24px}
.site-brand img{width:180px;height:auto;max-height:68px;object-fit:contain}
.site-header-actions{display:flex;align-items:center;gap:25px;font-size:13px;font-weight:700}
.site-header-actions>a:first-child:hover{color:var(--site-navy)}
.site-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 18px;background:var(--site-navy);border:1px solid var(--site-navy);border-radius:5px;color:#fff;font-size:13px;font-weight:700;line-height:1.35;transition:background .18s,border-color .18s,transform .18s}
.site-button:hover{background:#0a47a8;border-color:#0a47a8;color:#fff;transform:translateY(-1px)}
.site-button:focus-visible,.site-nav a:focus-visible,.site-footer a:focus-visible{outline:3px solid #54d7aa;outline-offset:3px}
.site-button-outline{background:#fff;border-color:#0f5bd7;color:#0a47a8}
.site-button-outline:hover{background:#eaf1ff;border-color:#0a47a8;color:#0a47a8}
.site-nav{position:relative;display:block;top:0;left:auto;right:auto;margin:0;padding:0;background:var(--site-navy);color:#fff;border:0;box-shadow:none;font-size:14px;font-weight:700}
.site-nav .site-wrap{display:flex;align-items:center;overflow-x:auto;scrollbar-width:none}
.site-nav .site-wrap::-webkit-scrollbar{display:none}
.site-nav a{display:block;flex:none;padding:15px 19px;color:#fff;white-space:nowrap;border-bottom:0;font-size:14px}
.site-nav a:hover{background:#0a47a8;color:#fff}
.home .site-nav a:first-child{background:var(--site-accent);color:#fff}
.site-footer{position:relative;background:var(--site-deep);color:#dbe8fb;font-size:13px}
.site-footer a{color:#e8f1ff}
.site-footer a:hover{color:#9ee8ce}
.site-footer-grid{display:grid;grid-template-columns:minmax(240px,1.6fr) repeat(3,minmax(140px,1fr));gap:45px;padding:52px 0 42px}
.site-footer-grid>div>h2{color:#fff;font-size:14px;margin:0 0 17px;padding:0;border:0}
.site-footer-grid>div>a{display:block;margin:0 0 10px;line-height:1.6}
.site-footer-brand{display:grid;grid-template-columns:46px 1fr;align-content:start;gap:0 12px}
.site-footer-brand>img{width:46px;height:46px;object-fit:contain}
.site-footer-brand strong{display:block;font-size:21px;color:#fff;line-height:1.25}
.site-footer-brand span{display:block;font-size:11px;color:#9ee8ce;letter-spacing:.13em;margin-top:5px}
.site-footer-brand p{grid-column:1/-1;max-width:310px;line-height:1.85;margin:17px 0 0}
.site-footer-bottom{border-top:1px solid rgba(255,255,255,.13)}
.site-footer-bottom>.site-wrap{padding:18px 0 22px;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.site-footer-bottom p{margin:0;color:#b4cae8;font-size:12px}
.site-footer-legal{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;font-size:12px}
.site-footer-legal a{display:inline-flex;align-items:center;gap:5px}
.site-footer-legal img{height:16px;width:16px;object-fit:contain}
.site-fallback{padding:80px 0;min-height:50vh}
.site-fallback p{margin:12px 0 25px}

/* 首页使用资讯门户排版；正文页继续承载原有详情和工具组件。 */
.site-home-feature{background:#fff;border-bottom:1px solid var(--site-line);padding:46px 0 50px}
.site-kicker{display:inline-flex;align-items:center;gap:12px;color:#0a8b61;font-size:11px;letter-spacing:.17em;font-weight:800}
.site-kicker:after{content:"";width:32px;height:1px;background:var(--site-accent)}
.site-home-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:22px;gap:20px}
.site-home-heading h1{font-size:34px;line-height:1.25;margin:7px 0 0;letter-spacing:-.03em}
.site-home-heading p{margin:0;color:var(--site-muted);font-size:13px}
.site-feature-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(290px,.8fr);gap:18px}
.site-feature-lead,.site-feature-small{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:end;color:#fff}
.site-feature-lead{min-height:400px;padding:48px 42px;background:#0b2e6b}
/* 图片是装饰性视觉；遮罩只负责确保各种裁切尺寸下标题仍可读。 */
.site-feature-lead>.site-feature-photo,.site-feature-small>.site-feature-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.site-feature-lead:before,.site-feature-small:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(5,20,47,.72),rgba(5,20,47,.12) 88%)}
.site-feature-small:before{background:linear-gradient(0deg,rgba(5,24,54,.88),rgba(5,24,54,.04) 85%)}
.site-feature-lead>*:not(.site-feature-photo),.site-feature-small>*:not(.site-feature-photo){position:relative;z-index:2}
.site-feature-lead small,.site-feature-small small{color:#a8f0d5;font-size:11px;font-weight:800;letter-spacing:.16em}
.site-feature-lead h2{font-size:34px;line-height:1.35;max-width:530px;margin:12px 0}
.site-feature-lead p{font-size:15px;color:#dce7ea;max-width:470px;margin:0 0 18px}
.site-feature-lead span:last-child{font-size:12px;color:#c9d8df}
.site-feature-side{display:grid;grid-template-rows:1fr 1fr;gap:18px}
.site-feature-small{min-height:190px;padding:26px 28px;background:#0a47a8}
.site-feature-small:last-child{background:#087c73}
.site-feature-small h3{font-size:22px;line-height:1.35;margin:8px 0 0;max-width:280px}
.site-feature-lead:hover,.site-feature-small:hover{color:#fff}
.site-feature-lead:hover h2,.site-feature-small:hover h3{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.site-image-note{margin:12px 0 0;text-align:right;color:var(--site-muted);font-size:11px}
.site-category-strip{background:#fff;border-bottom:1px solid var(--site-line)}
.site-category-strip .site-wrap{display:grid;grid-template-columns:repeat(4,1fr)}
.site-category-strip a{padding:24px 20px;border-right:1px solid var(--site-line);display:flex;align-items:center;gap:13px}
.site-category-strip a:first-child{border-left:1px solid var(--site-line)}
.site-category-icon{width:40px;height:40px;border:1px solid #bed3f6;display:grid;place-items:center;color:#0f5bd7;font-size:20px;flex:none}
.site-category-strip strong,.site-category-strip small{display:block}
.site-category-strip strong{font-size:15px}
.site-category-strip small{font-size:11px;color:var(--site-muted)}
.site-home-body{padding:60px 0 75px}
.site-home-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:48px}
.site-section-title{display:flex;justify-content:space-between;align-items:end;border-bottom:2px solid var(--site-navy);padding-bottom:12px;margin-bottom:24px}
.site-section-title h2{font-size:24px;margin:5px 0 0}
.site-section-title>a{font-size:12px;color:#0a47a8}
.site-story-list{display:grid;gap:16px}
.site-story{display:grid;grid-template-columns:190px 1fr;gap:20px;padding:13px;background:#fff;border:1px solid var(--site-line)}
.site-story-art{min-height:140px;display:grid;place-items:center;background:linear-gradient(135deg,#3683d8,#0b4d9f);color:#fff;font-family:Georgia,serif;font-size:38px}
.site-story:nth-child(2) .site-story-art{background:linear-gradient(135deg,#0f73c8,#0b3f92)}
.site-story:nth-child(3) .site-story-art{background:linear-gradient(135deg,#2cb890,#087c73)}
.site-story-art{overflow:hidden}
.site-story-art img{width:100%;height:100%;min-height:140px;object-fit:cover;transition:transform .2s}
.site-story-art:hover img{transform:scale(1.04)}
.site-story-body{padding:8px 6px 6px 0}
.site-story-body small{font-size:11px;color:#0a8b61;font-weight:800}
.site-story-body h3{font-size:19px;line-height:1.45;margin:7px 0}
.site-story-body p{font-size:13px;color:var(--site-muted);line-height:1.75;margin:0}
.site-story-more{margin-top:22px}
.site-side-box{background:#fff;border:1px solid var(--site-line);padding:23px;margin-bottom:20px}
.site-side-box h2{font-size:17px;border-bottom:2px solid var(--site-navy);padding-bottom:12px;margin:0 0 17px}
.site-side-box p{font-size:13px;color:var(--site-muted);margin:0 0 16px}
.site-side-actions{display:grid;gap:9px}
.site-side-actions .site-button{justify-content:space-between;width:100%}
.site-about-box{background:var(--site-navy);padding:28px;color:#fff}
.site-about-box h2{font-size:23px;line-height:1.35;margin:15px 0}
.site-about-box p{font-size:13px;color:#d5e0e6;line-height:1.8;margin:0 0 20px}
.site-about-box .site-button{background:var(--site-accent);border-color:var(--site-accent);color:#fff}
.site-about-box .site-button:hover{background:#087c57;border-color:#087c57}

@media(max-width:900px){.site-footer-grid{grid-template-columns:1.5fr 1fr 1fr;gap:28px}.site-footer-grid>div:last-child{grid-column:2/4}.site-home-grid{gap:25px;grid-template-columns:minmax(0,1fr) 260px}.site-category-strip a{padding:18px 12px}}
@media(max-width:700px){.site-wrap{width:min(100% - 28px,1200px)}.site-utility span:last-child,.site-header-actions{display:none}.site-masthead .site-wrap{min-height:76px}.site-brand img{width:150px}.site-nav a{padding:13px 14px}.site-feature-grid,.site-home-grid{grid-template-columns:1fr}.site-feature-lead{min-height:330px;padding:30px}.site-feature-lead h2{font-size:28px}.site-feature-side{grid-template-columns:1fr 1fr;grid-template-rows:auto}.site-feature-small{min-height:145px;padding:20px}.site-feature-small h3{font-size:17px}.site-home-heading{display:block}.site-home-heading h1{font-size:28px}.site-home-heading p{margin-top:8px}.site-category-strip .site-wrap{grid-template-columns:1fr 1fr}.site-category-strip a{border-bottom:1px solid var(--site-line)}.site-home-body{padding:42px 0}.site-footer-grid{grid-template-columns:1fr 1fr}.site-footer-grid>div:first-child{grid-column:1/-1}.site-footer-grid>div:last-child{grid-column:auto}}
@media(max-width:480px){.site-feature-side{grid-template-columns:1fr}.site-feature-small{min-height:120px}.site-category-strip a{padding:13px 8px;gap:8px}.site-category-icon{height:35px;width:35px}.site-category-strip small{font-size:10px}.site-story{grid-template-columns:90px 1fr;gap:10px;padding:9px}.site-story-art{min-height:120px;font-size:19px}.site-story-body{padding:2px}.site-story-body h3{font-size:15px;margin:4px 0}.site-story-body p{display:none}.site-footer-grid{gap:23px}.site-footer-grid>div:last-child{grid-column:1/-1}.site-footer-bottom>.site-wrap{display:block}.site-footer-legal{margin-top:12px}}
@media(max-width:480px){.site-feature-lead>.site-feature-photo{object-position:67% center}.site-feature-lead:before{background:linear-gradient(0deg,rgba(5,20,47,.9),rgba(5,20,47,.32) 95%)}.site-story-art img{min-height:120px}}

/* 测试站视觉方案：深海军蓝、暖白和克制的香槟色，覆盖导入页面的原亮蓝/绿色。 */
:root{
  --bg:#f8f6f1;--card:#fffefa;--ink:#1d2c38;--muted:#65717a;
  --brand:#1b354a;--brand-dark:#10283a;--accent:#8b724f;
  --line:#e7e2d9;--shadow:0 2px 14px rgba(25,39,48,.055);
  --nav-h:82px;
  --site-navy:#1b354a;--site-deep:#10283a;--site-accent:#8b724f;
  --site-ink:#1d2c38;--site-muted:#65717a;--site-line:#e7e2d9;--site-paper:#f8f6f1;
}
body{background:var(--site-paper);color:var(--site-ink)}

/* Logo 与导航共用一条悬浮页眉；Slogan 作为 Logo 锁定组合的一部分。 */
.site-masthead{position:sticky;top:0;z-index:100;background:rgba(255,254,250,.97);border-bottom:1px solid var(--site-line);box-shadow:0 7px 22px rgba(16,40,58,.065);backdrop-filter:blur(14px)}
.site-masthead .site-header-row{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.site-brand{display:inline-flex;flex:none;flex-direction:column;align-items:center;justify-content:center;gap:0;width:166px;line-height:1}
.site-brand img{width:158px;max-height:none;height:auto;object-fit:contain}
.site-brand-slogan{display:block;white-space:nowrap;color:#786747;font-size:10px;font-weight:600;letter-spacing:.17em;margin-top:-1px}
.site-brand-slogan span{padding:0 2px;color:#b49c72}
.site-brand:focus-visible,.site-menu-toggle:focus-visible{outline:3px solid #b49c72;outline-offset:4px}
.site-nav{position:static;display:block;flex:1;min-width:0;margin:0;padding:0;background:none;border:0;box-shadow:none;color:var(--site-ink);font-size:13px;font-weight:600}
.site-nav-list{display:flex;align-items:center;justify-content:center;gap:2px;overflow:visible}
.site-nav a{display:block;flex:none;padding:11px 10px;border:0;border-radius:3px;color:#354551;font-size:13px;font-weight:600;white-space:nowrap;transition:color .18s,background .18s}
.site-nav a:hover,.site-nav a[aria-current="page"],.home .site-nav a:first-child{background:#f0ebe2;color:var(--site-navy)}
.site-nav a[aria-current="page"]{box-shadow:inset 0 -2px 0 #a98f64}
.site-header-actions{display:flex;flex:none;align-items:center;gap:16px;font-size:12px;font-weight:600}
.site-header-about{white-space:nowrap;color:#46525b}
.site-header-actions>a:first-child:hover{color:var(--site-accent)}
.site-button{background:var(--site-navy);border-color:var(--site-navy);border-radius:3px;color:#fff;box-shadow:none}
.site-button:hover{background:var(--site-deep);border-color:var(--site-deep);color:#fff}
.site-button-outline{background:transparent;border-color:#b9a785;color:#594a35}
.site-button-outline:hover{background:#f3eee4;border-color:#9b8058;color:#483a28}
.site-button:focus-visible,.site-nav a:focus-visible,.site-footer a:focus-visible{outline:3px solid #b49c72;outline-offset:3px}
.site-menu-toggle{display:none;align-items:center;justify-content:center;flex-direction:column;gap:5px;flex:none;width:42px;height:42px;background:transparent;border:1px solid var(--site-line);border-radius:3px;cursor:pointer}
.site-menu-toggle span{display:block;width:19px;height:2px;background:var(--site-navy);border-radius:2px}

/* 首页保留清晰的内容层级，用暖色留白和细线替代高饱和色块。 */
.site-home-feature,.site-category-strip{background:#fffefa}
.site-home-feature{padding:38px 0 44px}
.site-home-heading h1{font-weight:650;letter-spacing:.01em}
.site-kicker,.site-story-body small{color:#846d4d}
.site-kicker:after{background:#b8a37e}
.site-feature-lead,.site-feature-small,.site-feature-small:last-child{background:var(--site-navy)}
.site-feature-lead:before{background:linear-gradient(90deg,rgba(8,24,37,.79),rgba(8,24,37,.16) 90%)}
.site-feature-small:before{background:linear-gradient(0deg,rgba(8,24,37,.85),rgba(8,24,37,.08) 90%)}
.site-feature-lead small,.site-feature-small small{color:#e2ceaa}
.site-feature-photo,.site-story-art img{filter:saturate(.78)}
.site-category-icon{border-color:#d9c8ab;color:#846d4d}
.site-section-title,.site-side-box h2{border-bottom-color:#b7a17a}
.site-section-title>a{color:var(--site-navy)}
.site-story,.site-side-box{background:#fffefa}
.site-story-art,.site-story:nth-child(2) .site-story-art,.site-story:nth-child(3) .site-story-art{background:var(--site-navy)}
.site-about-box{background:var(--site-navy)}
.site-about-box .site-kicker{color:#e2ceaa}
.site-about-box .site-button{background:#d6c09a;border-color:#d6c09a;color:#1b354a}
.site-about-box .site-button:hover{background:#e2d0af;border-color:#e2d0af;color:#10283a}

/* 导入的 228 个旧页面仍使用原组件，这里统一替换视觉令牌和少数写死的背景色。 */
.cjx-content-page .page-hero{background:linear-gradient(125deg,#112a3d,#254358 76%,#52606a)}
.cjx-content-page .page-hero .lead,.cjx-content-page .page-hero .stats .s span{color:#dfded8}
.cjx-content-page .tag{background:#eee8dc;color:#685337}
.cjx-content-page .tag.green{background:#ede5d6;color:#685337}
.cjx-content-page .btn.green,.cjx-content-page .cost-result,.cjx-content-page .add-row button{background:var(--site-navy)}
.cjx-content-page .btn.green:hover{background:var(--site-deep)}
.cjx-content-page .term-link{border-bottom-color:#baa783}
.cjx-content-page .info-meta .im-effective{color:var(--site-navy)}
.cjx-content-page .kv .k,.cjx-content-page .score-sum,.cjx-content-page .spec-table td:nth-child(odd),.cjx-content-page .data-table thead th,.cjx-content-page .compare-table-wrap table thead th{background:#f2eee7}
.cjx-content-page .proj-row:hover,.cjx-content-page .list-item:hover{background:#f8f5ef}
.cjx-content-page .country-tile:hover,.cjx-content-page .tool:hover{border-color:#c7b89f}
.cjx-content-page .dict .term .term-detail{background:#f6f2ea}
.cjx-content-page .dict .term .term-official a{color:#756040}

.site-footer{background:#10283a;color:#d7d9d8}
.site-footer a{color:#e0e0dc}
.site-footer a:hover,.site-footer-brand span{color:#d8c29b}
.site-footer-bottom p{color:#bdc6c8}

@media(max-width:1060px){
  .site-masthead .site-header-row{gap:14px}
  .site-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fffefa;border-bottom:1px solid var(--site-line);box-shadow:0 15px 24px rgba(16,40,58,.13)}
  .site-nav.is-open{display:block}
  .site-nav-list{width:min(1200px,calc(100% - 40px));margin:0 auto;padding:12px 0 18px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  .site-nav a{padding:13px;text-align:center}
  .site-menu-toggle{display:flex;order:3}
  .site-header-actions{order:2;margin-left:auto}
  .site-header-about{display:none}
}
@media(max-width:700px){
  :root{--nav-h:72px}
  .site-masthead .site-header-row{min-height:72px}
  .site-header-actions{display:flex}
  .site-home-feature{padding:30px 0 37px}
  .site-nav-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){.site-header-actions{display:none}.site-menu-toggle{margin-left:auto}}
@media(max-width:480px){
  .site-brand{width:150px}
  .site-brand img{width:145px}
  .site-brand-slogan{font-size:9px}
  .site-feature-lead:before{background:linear-gradient(0deg,rgba(8,24,37,.9),rgba(8,24,37,.28) 95%)}
}
@media(min-width:783px){body.admin-bar .site-masthead{top:32px}}
@media(max-width:782px){body.admin-bar .site-masthead{top:46px}}
