优化首页服务入口、统一导航与登录页配色

This commit is contained in:
gaofeng
2026-11-02 14:58:30 +08:00
parent 82612b653c
commit befcf2d188
7 changed files with 54 additions and 48 deletions

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-1">
{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; }

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);
}