Merge remote-tracking branch 'origin/main'

This commit is contained in:
2026-11-03 14:08:40 +08:00
9 changed files with 153 additions and 56 deletions

View File

@@ -15,12 +15,12 @@ const MODEL = 'msg';
const BUCKET = 'gzevus';
const COUNTRY = 'EVUS登记';
const SOURCE = 'acvisa.cn';
const PAY_MARK = 'evuscn';
const PAY_MARK = 'gzevus';
const OSS_URL = 'https://files.jzvisa.com/' . BUCKET . '/';
/*esta 配置*/
const ESTA_COUNTRY = 'ESTA登记';
const PAY_ESTA_MARK = 'estacn';
const PAY_ESTA_MARK = 'gzesta';
const ESTA_MODEL = 'esta';
const ESTA_INCOICETYPE = '6';
const BASE_PATH = '/evus'; // 可后端模板注入

View File

@@ -330,7 +330,7 @@
class="layui-zhtit-grey">{:lang('evus.pinyin')}</span><span>*</span></label>
<div class="layui-input-block">
<div class="layui-input-group">
<input type="text" name="us_visa_surname" value="" placeholder="{:lang('evus.last_name_placeholder')}"
<input lay-verify="englishOnly" type="text" name="us_visa_surname" value="" placeholder="{:lang('evus.last_name_placeholder')}"
class="layui-input layui-required" lay-verType="tips"
lay-reqtext="{:lang('evus.last_name_required')}">
<div class="layui-input-group-prepend" style="width: 5%; text-align: center">
@@ -347,7 +347,7 @@
class="layui-zhtit-grey">{:lang('evus.pinyin')}</span><span>*</span></label>
<div class="layui-input-block">
<div class="layui-input-group">
<input type="text" name="us_visa_first_name" value="" placeholder="{:lang('evus.first_name_placeholder')}"
<input lay-verify="englishOnly" type="text" name="us_visa_first_name" value="" placeholder="{:lang('evus.first_name_placeholder')}"
class="layui-input layui-required" lay-verType="tips"
lay-reqtext="{:lang('evus.first_name_required')}">
<div class="layui-input-group-prepend" style="width: 5%; text-align: center">
@@ -763,7 +763,7 @@
<label class="layui-form-label">{:lang('evus.alias_last_name_label')}<span>*</span></label>
<div class="layui-input-block">
<div class="layui-input-group">
<input class="layui-input layui-required" name="family_name_alias"
<input lay-verify="englishOnly" class="layui-input layui-required" name="family_name_alias"
type="text" placeholder="{:lang('evus.alias_last_name_placeholder')}" lay-verType="tips"
lay-reqtext="{:lang('evus.alias_last_name_tooltip')}"/>
<div class="layui-input-group-prepend" style="width: 5%; text-align: center">
@@ -780,7 +780,7 @@
<label class="layui-form-label">{:lang('evus.alias_first_name_label')}<span>*</span></label>
<div class="layui-input-block">
<div class="layui-input-group">
<input class="layui-input layui-required" name="given_name_alias"
<input lay-verify="englishOnly" class="layui-input layui-required" name="given_name_alias"
type="text" placeholder="{:lang('evus.alias_first_name_placeholder')}" lay-verType="tips"
lay-reqtext="{:lang('evus.alias_first_name_tooltip')}"/>
<div class="layui-input-group-prepend" style="width: 5%; text-align: center">
@@ -838,7 +838,7 @@
<label class="layui-form-label">{:lang('evus.email_label')}</label>
<div class="layui-input-block">
<div class="layui-input-group">
<input type="text" name="email" value="" placeholder="{:lang('evus.email_placeholder')}"
<input lay-verify="email" type="email" name="email" value="" placeholder="{:lang('evus.email_placeholder')}"
class="layui-input"
lay-verType="tips" lay-reqtext="{:lang('evus.email_required')}">
<div class="layui-input-group-prepend" style="width: 5%; text-align: center">
@@ -1339,7 +1339,7 @@
<div class="layui-input-block">
<div class="layui-input-group">
<input class="layui-input" name="emergency_email"
type="text" placeholder="{:lang('evus.emergency_email_placeholder')}" lay-verType="tips"
type="email" placeholder="{:lang('evus.emergency_email_placeholder')}" lay-verType="tips"
lay-reqtext="{:lang('evus.emergency_email_required')}" lay-verify="email"/>
<div class="layui-input-group-prepend" style="width: 5%; text-align: center">
<i class="layui-icon layui-icon-question"
@@ -1954,9 +1954,14 @@
}
},
englishOnly: function (value, item) {
// Conditional and optional names are validated only when visible and filled.
if (!value || !layui.$(item).is(':visible')) return;
if (!/^[A-Za-z]+$/.test(value)) {
return '{:lang("js.english_only")}';
}
},
email: function (value, item) {
if (value && item.validity.typeMismatch) return item.validationMessage;
}
});
async function upload(_this, name) {
@@ -2107,4 +2112,30 @@
}
}
</script>
<script id="evus-pinyin-input">
document.querySelectorAll('input[name="last_name"], input[name="first_name"], input[name="us_visa_surname"], input[name="us_visa_first_name"], input[name="family_name_alias"], input[name="given_name_alias"]').forEach(function (input) {
var lastValid = /^[A-Za-z]*$/.test(input.value) ? input.value : '';
var composing = false;
function checkInput() {
if (/^[A-Za-z]*$/.test(input.value)) {
lastValid = input.value;
return;
}
// Reject the whole edit rather than silently changing a pasted name.
input.value = lastValid;
layer.msg('{:lang("js.english_only")}');
}
input.addEventListener('focus', function () {
if (/^[A-Za-z]*$/.test(input.value)) lastValid = input.value;
});
input.addEventListener('compositionstart', function () { composing = true; });
input.addEventListener('compositionend', function () {
composing = false;
checkInput();
});
input.addEventListener('input', function (event) {
if (!composing && !event.isComposing) checkInput();
});
});
</script>
</html>

View File

@@ -1,6 +1,6 @@
{include file="public/head" /}
<body class="ac-home">
<link rel="stylesheet" href="/static/home/css/home-acvisa.css?v=20261030-4">
<link rel="stylesheet" href="/static/home/css/home-acvisa.css?v=20261102-3">
<a class="ac-skip" href="#main">跳到主要内容</a>
{include file="public/site_nav" /}
<main id="main">
@@ -23,24 +23,23 @@
<div class="ac-wrap">
<aside class="ac-disclosure" aria-label="服务性质与费用说明">
<span class="ac-info" aria-hidden="true">i</span>
<p><strong>服务说明</strong> 本网站为独立运营的商业服务平台,提供有偿代办服务,非任何政府机构或附属部门。收费包含官方费用与服务费,具体金额请在提交前确认。您也可以前往 <a href="https://www.evus.gov/" target="_blank" rel="noopener noreferrer">EVUS 官方网站 <span aria-hidden="true">↗</span></a> 自行登记。</p>
<p><strong>请注意:根据美国海关和边境保护局(CBP)规定,自2026年10月16日起,EVUS登记官方费用调整为31.75美元。 本网站为独立运营的商业服务平台,提供有偿代办服务,收费包含官方费用与服务费,非任何政府机构或附属部门。</strong></p>
</aside>
<section class="ac-services" aria-label="快捷服务">
<a class="ac-service ac-service-featured" href="{:url('home/detail/index')}">
<a class="ac-service" href="{:url('home/detail/index')}">
<div class="ac-service-head"><span class="ac-service-icon"><svg class="ac-line-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><rect x="5" y="2.5" width="14" height="19" rx="2"/><circle cx="12" cy="10" r="3.5"/><path d="M8.5 10h7M12 6.5c2 2 2 5 0 7-2-2-2-5 0-7ZM9 17h6"/></svg></span><span class="ac-service-number">01 / EVUS</span></div>
<h2>新登记申请 <span aria-hidden="true">↗</span></h2><p>开始填写,提交您的登记信息</p>
<h2>新登记申请</h2><p>开始填写,提交您的登记信息</p>
<span class="ac-service-action"><span>开始 EVUS 登记</span><span aria-hidden="true">→</span></span>
</a>
<a class="ac-service" href="{:url('home/lookup/index')}">
<div class="ac-service-head"><span class="ac-service-icon"><svg class="ac-line-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M11 21H5V3h10l4 4v4M15 3v4h4M8 8h3M8 12h3"/><circle cx="16" cy="16" r="4"/><path d="m19 19 3 3"/></svg></span><span class="ac-service-number">02 / STATUS</span></div>
<h2>查询已有登记 <span aria-hidden="true">↗</span></h2><p>查看登记状态与办理结果</p>
<h2>查询已有登记</h2><p>查看登记状态与办理结果</p>
<span class="ac-service-action"><span>查询登记状态</span><span aria-hidden="true">→</span></span>
</a>
<a class="ac-service" href="{:url('home/esta/index')}">
<div class="ac-service-head"><span class="ac-service-icon"><svg class="ac-line-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m3 11 18-8-7 18-3-7-8-3Zm8 3L21 3M3 20l3-3"/></svg></span><span class="ac-service-number">03 / ESTA</span></div>
<h2>ESTA 申请 <span aria-hidden="true">↗</span></h2><p>前往 ESTA 旅行授权申请服务</p>
</a>
<a class="ac-service" href="https://visa.evus.cn/" target="_blank" rel="noopener noreferrer">
<div class="ac-service-head"><span class="ac-service-icon"><svg class="ac-line-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m3 8 9-5 9 5H3Zm2 3v7m5-7v7m4-7v7m5-7v7M3 18h18M2 21h20"/></svg></span><span class="ac-service-number">04 / VISA</span></div>
<h2>美国签证申请 <span aria-hidden="true">↗</span></h2><p>了解美签申请相关服务</p>
<h2>ESTA 申请</h2><p>前往 ESTA 旅行授权申请服务</p>
<span class="ac-service-action"><span>开始 ESTA 申请</span><span aria-hidden="true">→</span></span>
</a>
</section>
<section class="ac-section" aria-labelledby="process-title">
@@ -68,7 +67,7 @@
<section class="ac-section ac-faq-grid" aria-labelledby="faq-title">
<div><p class="ac-eyebrow">QUESTIONS & ANSWERS</p><h2 id="faq-title">有疑问?<br>先看看这里。</h2><p class="ac-section-intro">了解服务与办理方式,<br>再开始您的申请。</p><a class="ac-text-link" href="{:url('home/help/index')}">更多常见问题 <span aria-hidden="true">→</span></a></div>
<div class="ac-faq">
<details open><summary>这个网站是 EVUS 官方网站吗?</summary><p>不是。本网站是独立商业服务平台,提供收费的中文代理登记服务,不隶属于美国政府。您可以选择本平台服务,也可以前往 <a href="https://www.evus.gov/" target="_blank" rel="noopener noreferrer">EVUS 官方网站</a> 自行办理。</p></details>
<details open><summary>这个网站是 EVUS 官方网站吗?</summary><p>不是。本网站是独立商业服务平台,提供收费的中文代理登记服务,不隶属于美国政府。</p></details>
<details><summary>开始填写前,需要准备哪些信息?</summary><p>请准备护照、美国签证、个人及就业信息、联系方式、紧急联系人和相关旅行信息。具体填写项目以申请表要求为准。</p></details>
<details><summary>已经提交登记,在哪里查看进度?</summary><p>点击 <a href="{:url('home/lookup/index')}">查询已有登记</a>,按查询页面提示填写信息。您也可以进入 <a href="{:url('home/user/order')}">我的订单</a> 查看订单。</p></details>
<details><summary>提交前需要注意什么?</summary><p>请仔细核对证件信息,如实回答表格中的问题,并在支付前确认所选服务及费用。办理进度与结果以实际审核为准,请提前安排出行准备。</p></details>

View File

@@ -1,3 +1,2 @@
{assign name="ac_legacy_links" value="1" /}
<link rel="stylesheet" href="/static/home/css/inner-acvisa.css?v=20261030-5">
<link rel="stylesheet" href="/static/home/css/inner-acvisa.css?v=20261102-3">
{include file="public/site_nav" /}

View File

@@ -1,20 +1,17 @@
<link rel="stylesheet" href="/static/home/css/site-shell.css?v=20261030-3">
<link rel="stylesheet" href="/static/home/css/site-shell.css?v=20261102-2">
{php}$ac_section = explode('/', strtolower($menu_url ?? ''))[0];{/php}
<div class="ac-topline"><div class="ac-wrap">EVUS 中文登记服务 <span>独立商业服务平台 · 非美国政府网站</span></div></div>
<header class="ac-header{notempty name="ac_legacy_links"} ac-header-services{/notempty}">
<header class="ac-header ac-header-services">
<div class="ac-wrap ac-header-inner">
<a class="ac-brand" href="{:url('home/index/index')}" {eq name="ac_section" value="index"}aria-current="page"{/eq} aria-label="EVUS 中文登记服务首页"><img src="/static/home/images/logo_113.png" alt="eVUS 代理登记服务" width="2385" height="338"></a>
<nav class="ac-nav" aria-label="主导航">
<a href="{:url('home/index/index')}" {eq name="ac_section" value="index"}aria-current="page"{/eq}>首页</a>
<a href="{:url('home/detail/index')}" {eq name="ac_section" value="detail"}aria-current="page"{/eq}>EVUS登记</a>
<a href="{:url('home/lookup/index')}" {eq name="ac_section" value="lookup"}aria-current="page"{/eq}>登记查询</a>
<a href="{:url('home/esta/index')}" {eq name="ac_section" value="esta"}aria-current="page"{/eq}>{:lang('menu_esta_apply')}</a>
<a href="{:url('home/help/index')}" {eq name="ac_section" value="help"}aria-current="page"{/eq}>帮助中心</a>
<a href="{:url('home/news/index')}" {eq name="ac_section" value="news"}aria-current="page"{/eq}>新闻资讯</a>
<a href="{:url('home/company/index')}" {eq name="ac_section" value="company"}aria-current="page"{/eq}>关于我们</a>
{notempty name="ac_legacy_links"}
<a href="https://visa.evus.cn" target="_blank" rel="noopener noreferrer">{:lang('menu_us_apply')}</a>
<a href="{:url('home/esta/index')}" {eq name="ac_section" value="esta"}aria-current="page"{/eq}>{:lang('menu_esta_apply')}</a>
{/notempty}
</nav>
<a class="ac-account" href="{:url('home/user/order')}" {eq name="ac_section" value="user"}aria-current="page"{/eq}>我的订单 <span aria-hidden="true">↗</span></a>
<details class="ac-mobile-menu">
@@ -23,14 +20,11 @@
<a href="{:url('home/index/index')}" {eq name="ac_section" value="index"}aria-current="page"{/eq}>首页</a>
<a href="{:url('home/detail/index')}" {eq name="ac_section" value="detail"}aria-current="page"{/eq}>EVUS登记</a>
<a href="{:url('home/lookup/index')}" {eq name="ac_section" value="lookup"}aria-current="page"{/eq}>登记查询</a>
<a href="{:url('home/esta/index')}" {eq name="ac_section" value="esta"}aria-current="page"{/eq}>{:lang('menu_esta_apply')}</a>
<a href="{:url('home/help/index')}" {eq name="ac_section" value="help"}aria-current="page"{/eq}>帮助中心</a>
<a href="{:url('home/news/index')}" {eq name="ac_section" value="news"}aria-current="page"{/eq}>新闻资讯</a>
<a href="{:url('home/company/index')}" {eq name="ac_section" value="company"}aria-current="page"{/eq}>关于我们</a>
<a href="{:url('home/user/order')}" {eq name="ac_section" value="user"}aria-current="page"{/eq}>我的订单</a>
{notempty name="ac_legacy_links"}
<a href="https://visa.evus.cn" target="_blank" rel="noopener noreferrer">{:lang('menu_us_apply')}</a>
<a href="{:url('home/esta/index')}" {eq name="ac_section" value="esta"}aria-current="page"{/eq}>{:lang('menu_esta_apply')}</a>
{/notempty}
</nav>
</details>
</div>

View File

@@ -29,24 +29,20 @@ body.ac-home { margin: 0; color: #172d45; background: #fff; font-family: "Micros
.ac-hero-features { display: flex; gap: 21px; margin-top: 24px; color: #fff; font-size: 11px; }
.ac-hero-features span::before { content: "✓"; color: #f1dfc2; margin-right: 6px; }
.ac-home .ac-hero a:focus-visible { outline-color: #ffe0a3; }
.ac-disclosure { display: flex; align-items: flex-start; gap: 12px; padding: 23px 0; border-bottom: 1px solid #e7ecf0; font-size: 12px; line-height: 1.9; color: #687582; }
.ac-disclosure { display: flex; align-items: flex-start; gap: 12px; padding: 23px 0; border-bottom: 1px solid #e7ecf0; font-size: 15px; line-height: 1.9; color: #687582; }
.ac-info { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 18px; height: 18px; border: 1px solid #8c9aa6; border-radius: 50%; margin-top: 3px; font: 12px Georgia, serif; }
.ac-disclosure strong { color: #31475c; font-weight: 600; margin-right: 8px; }
.ac-home .ac-disclosure a, .ac-home .ac-faq a { color: #225a83; text-decoration: underline !important; text-underline-offset: 3px; }
.ac-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 30px 0; border-bottom: 1px solid #e7ecf0; }
.ac-service { display: block; min-width: 0; padding: 24px; border: 1px solid #e5e9ed; border-top: 2px solid #d8bd91; border-radius: 8px; background: linear-gradient(145deg, #fff, #f4f7f9); box-shadow: 0 5px 18px rgba(23, 45, 69, .04); transition: transform .18s, box-shadow .18s, border-color .18s; }
.ac-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 30px 0; border-bottom: 1px solid #e7ecf0; }
.ac-service { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid #e5e9ed; border-top: 2px solid #d8bd91; border-radius: 8px; background: linear-gradient(145deg, #fff, #f4f7f9); box-shadow: 0 5px 18px rgba(23, 45, 69, .04); transition: transform .18s, box-shadow .18s, border-color .18s; }
.ac-service-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 22px; }
.ac-service-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #e7d9c4; border-radius: 10px; background: #f7f0e6; color: #876637; }
.ac-service-number { font-size: 10px; letter-spacing: 1.3px; color: #6a7886; }
.ac-home .ac-service h2 { display: flex; justify-content: space-between; gap: 12px; margin: 11px 0 5px; font-size: 18px; font-weight: 600; }
.ac-service h2 span { color: #688197; font-weight: 400; }
.ac-service:hover h2 { color: #347397; }
.ac-service p { font-size: 12px; color: #74808b; }
.ac-home .ac-service-featured { color: #fff; border-color: #244d6c; border-top-color: #dec399; background: linear-gradient(135deg, #173c5b, #244f70); box-shadow: 0 8px 22px rgba(23, 60, 91, .15); }
.ac-service-featured .ac-service-icon { color: #f1dfc2; border-color: #668093; background: rgba(255,255,255,.07); }
.ac-service-featured .ac-service-number, .ac-service-featured h2 span { color: #f1dfc2; }
.ac-service-featured p { color: #dfE8ef; }
.ac-service-featured:hover h2 { color: #f1dfc2; }
.ac-home .ac-service h2 { margin: 11px 0 5px; font-size: 18px; font-weight: 600; }
.ac-home .ac-service p { margin-bottom: 22px; font-size: 12px; color: #74808b; }
.ac-service-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; min-height: 44px; padding: 10px 16px; border-radius: 5px; background: #173c5b; color: #fff; font-size: 14px; font-weight: 600; }
.ac-service:is(:hover, :focus-visible) { border-color: #285b7c; transform: translateY(-3px); box-shadow: 0 8px 22px rgba(23, 60, 91, .12); }
.ac-service:is(:hover, :focus-visible) .ac-service-action { background: #245577; }
.ac-section { padding: 64px 0; }
.ac-section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 32px; }
.ac-home h2 { font-size: 30px; line-height: 1.45; font-weight: 600; }
@@ -109,6 +105,7 @@ body.ac-home { margin: 0; color: #172d45; background: #fff; font-family: "Micros
.ac-home .ac-hero h1 { font-size: 39px; }
.ac-hero-features { flex-wrap: wrap; gap: 12px; }
.ac-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ac-services > .ac-service:last-child { grid-column: 1 / -1; }
.ac-section { padding: 44px 0; }
.ac-steps { gap: 22px; }
.ac-steps li { display: block; }
@@ -132,11 +129,11 @@ body.ac-home { margin: 0; color: #172d45; background: #fff; font-family: "Micros
.ac-home .ac-hero-description { font-size: 13px; }
.ac-actions { flex-wrap: nowrap; gap: 9px; margin-top: 24px; }
.ac-home .ac-actions .ac-button { flex: 1; font-size: 12px; padding: 12px 10px; gap: 8px; min-height: 48px; }
.ac-disclosure { padding: 20px 0; font-size: 11px; gap: 9px; }
.ac-service p { font-size: 11px; }
.ac-disclosure { padding: 20px 0; font-size: 14px; gap: 9px; }
.ac-home .ac-service p { font-size: 11px; }
.ac-services { gap: 12px; }
.ac-home .ac-service h2 { font-size: 14px; }
.ac-service h2 span { display: none; }
.ac-service-action { padding: 10px 8px; gap: 6px; font-size: 12px; }
.ac-service-number { font-size: 9px; letter-spacing: .5px; }
.ac-service { padding: 18px 13px; }
.ac-service-head { gap: 5px; margin-bottom: 17px; }
@@ -164,11 +161,10 @@ body.ac-home { margin: 0; color: #172d45; background: #fff; font-family: "Micros
.ac-footer-links .ac-brand img { width: 240px; }
}
@media (hover: hover) {
.ac-service:hover { transform: translateY(-3px); border-color: #c6a575; box-shadow: 0 12px 26px rgba(23, 45, 69, .1); }
.ac-home .ac-button:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(9, 30, 49, .16); }
}
@media (prefers-reduced-motion: reduce) {
.ac-home .ac-button, .ac-service { transition: none; }
.ac-home .ac-button:hover, .ac-service:hover { transform: none; }
.ac-home .ac-button:hover, .ac-service:is(:hover, :focus-visible) { transform: none; }
}

View File

@@ -38,6 +38,7 @@ body:has(.ac-header) .m-form-application-title {
body:has(.ac-header) .m-form-application-title h2 { color: #173f62; font-weight: 600; }
body:has(.ac-header) .layui-upload-drag .layui-icon { color: var(--primary-color); }
body:has(.ac-header) .login-logo { color: #173f62; background: #f1dfc2; border-radius: 5px; }
body:has(.ac-header) .login-logo img { filter: brightness(0) saturate(100%) invert(19%) sepia(26%) saturate(1725%) hue-rotate(167deg) brightness(95%) contrast(94%); }
.login-page:has(.ac-header) .login-box { border-radius: 8px !important; box-shadow: 0 8px 24px rgba(23, 45, 69, .05) !important; }
body:not(.ac-home):has(.ac-header) .footer { margin-top: auto; }
@@ -89,3 +90,63 @@ body:is(.detail-page, .esta-page, .lookup-page):has(.ac-header) .layui-form-labe
/* The lookup grid already owns its column layout; avoid doubling its outer padding. */
body.lookup-page:has(.ac-header) .lookup-shell { width: 100%; max-width: none; padding: 0; }
body.lookup-page:has(.ac-header) #Form1 .lookup-form-grid { padding: 4px 10px 0; }
/* Style the existing EVUS steps as cards without changing their visibility or field structure. */
body.detail-page:has(.ac-header) .detail-shell > .layui-container > .container:has(> .layui-form) {
padding: 0;
border: 0;
background: transparent;
box-shadow: none;
}
body.detail-page:has(.ac-header) .detail-shell form.layui-form {
margin-bottom: 24px;
padding: 28px 24px 18px;
border: 1px solid #e1e8ee;
border-top: 3px solid #d8bd91;
border-radius: 12px;
background: #fff;
box-shadow: 0 6px 22px rgba(23, 45, 69, .04);
}
body.detail-page:has(.ac-header) .detail-shell .m-form-application-title h2 { font-size: 22px; }
body.detail-page:has(.ac-header) .detail-shell .layui-form-label { padding-top: 6px; padding-bottom: 8px; line-height: 1.6; }
body.detail-page:has(.ac-header) .detail-shell .layui-input { border-color: #d9e2e9; border-radius: 6px; }
body.detail-page:has(.ac-header) .detail-shell .layui-input:focus { border-color: #285b7c !important; box-shadow: 0 0 0 3px rgba(40, 91, 124, .1); }
/* Keep address fields in paired rows even when labels have different heights. */
body.detail-page:has(.ac-header) #Form3 > .layui-row:has(> .layui-col-md6) { display: flex; flex-wrap: wrap; }
body.detail-page:has(.ac-header) #Form3 > .layui-row > .layui-field-title { flex-basis: 100%; }
body.detail-page:has(.ac-header) .detail-shell .layui-col-md12 > .layui-form-item:has(input[type="radio"]) {
min-height: 0;
margin-bottom: 12px;
padding-bottom: 12px;
border-bottom: 1px solid #edf1f4;
}
body.detail-page:has(.ac-header) .detail-shell .layui-form-radio { margin-top: 0; padding: 6px 8px; line-height: 1.7; white-space: normal; }
body.detail-page:has(.ac-header) #Form9 .layui-form-item:has(input[name="total_price"]) {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
border: 0;
}
body.detail-page:has(.ac-header) #Form9 .layui-input-block:has(input[name="total_price"]) { margin: 0; min-width: 0; }
body.detail-page:has(.ac-header) #Form9 input[name="total_price"] + .layui-form-radio {
display: flex;
align-items: flex-start;
gap: 10px;
height: 100%;
box-sizing: border-box;
margin: 0;
padding: 16px;
border: 1px solid #d9e2e9;
border-radius: 8px;
background: #f8fafc;
}
body.detail-page:has(.ac-header) #Form9 input[name="total_price"] + .layui-form-radio > i { flex-shrink: 0; margin-right: 0; }
body.detail-page:has(.ac-header) #Form9 input[name="total_price"] + .layui-form-radioed { border-color: #173f62; background: #edf3f7; box-shadow: inset 0 0 0 1px #173f62; }
body.detail-page:has(.ac-header) #Form9 .payment-choice-option:has(input:checked) { border-color: #173f62; box-shadow: 0 0 0 1px #173f62; }
body.detail-page:has(.ac-header) #submit { min-width: 220px; min-height: 48px; margin-top: 8px; border-radius: 6px; font-size: 18px; box-shadow: none; }
@media (max-width: 800px) {
body.detail-page:has(.ac-header) .detail-shell form.layui-form { margin-bottom: 16px; padding: 20px 10px 12px; }
body.detail-page:has(.ac-header) .detail-shell .m-form-application-title h2 { font-size: 20px; }
body.detail-page:has(.ac-header) #Form9 .layui-form-item:has(input[name="total_price"]) { grid-template-columns: 1fr; }
body.detail-page:has(.ac-header) #submit { width: 100%; min-width: 0; }
}

View File

@@ -7,11 +7,11 @@
.ac-topline { color: #e0e9f2; background: #122e4b; font-size: 11px; letter-spacing: 1px; }
.ac-topline .ac-wrap { display: flex; justify-content: space-between; padding: 8px 0; }
.ac-header { background: #fff; border-bottom: 1px solid #e4d6c1; }
.ac-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 68px; }
.ac-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 56px; }
.ac-brand { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.ac-brand img { display: block; width: 260px; height: auto; filter: brightness(0) saturate(100%) invert(19%) sepia(26%) saturate(1725%) hue-rotate(167deg) brightness(95%) contrast(94%); }
.ac-nav { display: flex; gap: 25px; align-items: center; }
.ac-nav a { padding: 20px 0 18px; font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent; }
.ac-nav a { padding: 14px 0 12px; font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent; }
.ac-nav a:hover, .ac-nav a[aria-current] { color: #153e63; border-bottom-color: #b8894d; }
.ac-account { font-size: 13px; white-space: nowrap; }
.ac-account span { margin-left: 10px; }
@@ -60,11 +60,12 @@ body:has(.ac-header) .evus-foot { display: none; }
body:has(.ac-header) .evus-foot a { display: flex; justify-content: center; align-items: center; flex: 1; width: auto; height: 42px; margin: 0; padding: 0 8px; color: #23445e; background: #fff; font-size: 13px; line-height: 1.5; border: 0; }
body:has(.ac-header) .evus-foot a[aria-current="page"] { color: #fff; background: #173f62; border-radius: 4px; }
}
.ac-header-services .ac-brand img { width: 180px; }
.ac-header-services .ac-header-inner { gap: 20px; }
.ac-header-services .ac-nav { gap: 16px; }
.ac-header-services .ac-brand img { width: 220px; }
.ac-header-services .ac-header-inner { gap: 32px; }
.ac-header-services .ac-nav { gap: 32px; }
.ac-header-services .ac-nav a { font-size: 15px; }
@media (min-width: 801px) and (max-width: 1150px) {
.ac-header-services .ac-header-inner { flex-wrap: wrap; justify-content: center; gap: 0 24px; padding-top: 14px; }
.ac-header-services .ac-header-inner { flex-wrap: wrap; justify-content: center; gap: 0 24px; padding-top: 10px; }
.ac-header-services .ac-nav { order: 3; width: 100%; justify-content: center; }
}
@media (max-width: 800px) {

View File

@@ -16,12 +16,24 @@ $template = new think\Template([
$vars = [
'seo' => ['title' => 'EVUS 中文登记服务', 'description' => '首页本地预览', 'keywords' => 'EVUS'],
'logo_icon' => '', 'asset_version' => 'preview', 'menu_url' => 'index/index',
'footer' => '', 'phone' => '',
'footer' => '', 'phone' => '', 'base_path' => '/evus',
];
foreach ([[], [['id' => 7, 'title' => '<script>alert(1)</script>', 'create_time' => '2026-10-29']]] as $news) {
ob_start();
$template->fetch('index/index', $vars + ['data' => $news]);
$html = ob_get_clean();
preg_match('~<header\b.*?</header>~s', $html, $header);
$homepageNavigation = str_replace('aria-current="page"', '', $header[0]);
preg_match_all('~<nav\b[^>]*>(.*?)</nav>~s', $header[0], $menus);
preg_match_all('~href="([^"]+)"~', $menus[1][0], $desktopLinks);
preg_match_all('~href="([^"]+)"~', $menus[1][1], $mobileLinks);
$desktopLinks[1][] = (string) url('home/user/order');
if (count($mobileLinks[1]) !== 8 || $desktopLinks[1] !== $mobileLinks[1]) {
throw new RuntimeException('Homepage desktop and mobile menus must share all eight entries in order');
}
if (str_contains($html, 'https://visa.evus.cn')) {
throw new RuntimeException('Unfinished US visa website must not be linked from the homepage');
}
if (substr_count($html, 'src="/static/home/images/logo_113.png"') !== 2 || !str_contains($html, 'href="/static/home/images/evus-icon.png"')) {
throw new RuntimeException('Original EVUS logo and default site icon must render');
}
@@ -70,11 +82,15 @@ foreach (['detail/index' => 'detail/index', 'lookup/index' => 'lookup/index', 'n
ob_start();
$template->fetch('public/home_menu', array_replace($vars, ['menu_url' => $current]));
$navigation = ob_get_clean();
preg_match('~<header\b.*?</header>~s', $navigation, $innerHeader);
if (str_replace('aria-current="page"', '', $innerHeader[0]) !== $homepageNavigation) {
throw new RuntimeException('Homepage and inner navigation must match apart from the active page');
}
$activeLink = 'href="' . url('home/' . $active) . '" aria-current="page"';
if (substr_count($navigation, $activeLink) !== 2) {
throw new RuntimeException('Desktop and mobile navigation must highlight: ' . $current);
}
foreach (['https://visa.evus.cn', (string) url('home/esta/index'), 'class="ac-mobile-menu"', 'id="ac-mobile-menu-dismiss"'] as $required) {
foreach ([(string) url('home/esta/index'), 'class="ac-mobile-menu"', 'id="ac-mobile-menu-dismiss"'] as $required) {
if (!str_contains($navigation, $required)) {
throw new RuntimeException('Shared navigation must retain: ' . $required);
}