diff --git a/assets/css/routes/sign.css b/assets/css/routes/sign.css
new file mode 100644
index 00000000..5dee9111
--- /dev/null
+++ b/assets/css/routes/sign.css
@@ -0,0 +1,295 @@
+/**
+ * AKSRT full-page sign shell (login / register / reset / bind).
+ *
+ * @package AKSRT
+ */
+
+.page-template-user-sign {
+ min-height: 500px;
+}
+
+.sign-page {
+ min-height: 100vh;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ position: relative;
+ padding: 70px 16px 40px;
+}
+
+.sign-bg {
+ position: fixed;
+ inset: 0;
+ background-repeat: no-repeat;
+ background-size: cover;
+ background-position: center;
+ z-index: 0;
+}
+
+.sign-topbar {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ z-index: 2;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 12px 20px;
+ background: color-mix(in srgb, var(--main-bg-color, #fff) 86%, transparent);
+ backdrop-filter: blur(8px);
+}
+
+.sign-topbar a {
+ color: var(--main-color, #4e5358);
+ text-decoration: none;
+ font-size: 14px;
+}
+
+.sign-card {
+ position: relative;
+ z-index: 1;
+ width: 100%;
+ max-width: 420px;
+ background: var(--main-bg-color, #fff);
+ border-radius: var(--main-radius, 8px);
+ box-shadow: 0 0 10px var(--main-shadow, rgba(116, 116, 116, 0.08));
+ padding: 30px 35px;
+}
+
+.sign-card--left { margin-right: auto; }
+.sign-card--right { margin-left: auto; }
+.sign-card--center { margin: 0 auto; }
+
+.sign-logo {
+ text-align: center;
+ margin-bottom: 20px;
+}
+
+.sign-logo img {
+ height: 36px;
+}
+
+.sign-logo__text {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 48px;
+ height: 48px;
+ border-radius: 12px;
+ background: var(--focus-color, #f04494);
+ color: #fff;
+ font-size: 18px;
+ font-weight: 700;
+ text-decoration: none;
+}
+
+.sign-tabs {
+ display: flex;
+ border-bottom: 2px solid var(--main-border-color, rgba(50, 50, 50, 0.06));
+ margin-bottom: 20px;
+}
+
+.sign-tab {
+ flex: 1;
+ padding: 10px 0;
+ border: none;
+ background: none;
+ font-size: 15px;
+ cursor: pointer;
+ color: var(--muted-color, #777);
+ border-bottom: 2px solid transparent;
+ margin-bottom: -2px;
+ transition: all .2s;
+ text-align: center;
+ font-weight: 500;
+}
+
+.sign-tab.is-active {
+ color: var(--focus-color, #f04494);
+ border-bottom-color: var(--focus-color, #f04494);
+ font-weight: 600;
+}
+
+.sign-tab:hover { color: var(--focus-color, #f04494); }
+
+.sign-panel { display: none; }
+.sign-panel.is-active { display: block; }
+
+.sign-error {
+ background: rgba(239, 68, 68, 0.08);
+ border: 1px solid rgba(239, 68, 68, 0.2);
+ border-radius: var(--main-radius, 8px);
+ padding: 10px 14px;
+ font-size: 13px;
+ color: #ef4444;
+ margin-bottom: 16px;
+}
+
+.sign-success {
+ background: rgba(16, 185, 129, 0.08);
+ border: 1px solid rgba(16, 185, 129, 0.2);
+ border-radius: var(--main-radius, 8px);
+ padding: 10px 14px;
+ font-size: 13px;
+ color: #10b981;
+ margin-bottom: 16px;
+}
+
+.sign-notice {
+ padding: 16px;
+ text-align: center;
+ color: var(--muted-2-color, #666);
+ font-size: 14px;
+}
+
+.sign-form {
+ display: flex;
+ flex-direction: column;
+ gap: 16px;
+}
+
+.sign-form .form-field {
+ display: flex;
+ flex-direction: column;
+ gap: 6px;
+}
+
+.sign-form label {
+ font-size: 14px;
+ font-weight: 500;
+ color: var(--main-color, #4e5358);
+}
+
+.sign-form .input-wrap { position: relative; }
+
+.sign-form .input-wrap input {
+ width: 100%;
+ height: 44px;
+ padding: 0 14px;
+ border: 1px solid transparent;
+ background: var(--body-bg-color, #f5f6f7);
+ border-radius: var(--main-radius, 8px);
+ font-size: 14px;
+ color: var(--key-color, #333);
+ transition: border-color .15s;
+}
+
+.sign-form .input-wrap input:focus {
+ outline: none;
+ border-color: var(--focus-color, #f04494);
+ box-shadow: 0 0 2px 3px var(--focus-shadow-color, rgba(253, 83, 161, 0.4));
+}
+
+.sign-form .toggle-pwd {
+ position: absolute;
+ right: 10px;
+ top: 50%;
+ transform: translateY(-50%);
+ background: none;
+ border: none;
+ cursor: pointer;
+ color: var(--muted-2-color, #999);
+ padding: 4px;
+}
+
+.sign-form .form-row-between {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ font-size: 13px;
+}
+
+.sign-form .form-row-between a { color: var(--focus-color, #f04494); }
+
+.sign-form .form-row-between label {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ cursor: pointer;
+ font-size: 13px;
+ color: var(--muted-color, #777);
+}
+
+.sign-form .btn-submit {
+ width: 100%;
+ height: 44px;
+ border: none;
+ border-radius: var(--main-radius, 8px);
+ background: var(--focus-color, #f04494);
+ color: #fff;
+ font-size: 15px;
+ font-weight: 600;
+ cursor: pointer;
+ transition: opacity .15s;
+}
+
+.sign-form .btn-submit:hover { opacity: .85; }
+.sign-form .btn-submit:disabled { opacity: .5; cursor: not-allowed; }
+
+.sign-hint {
+ margin: 0;
+ font-size: 13px;
+ color: var(--muted-color, #777);
+}
+
+.sign-terms {
+ display: flex;
+ align-items: flex-start;
+ gap: 8px;
+ font-size: 13px;
+ cursor: pointer;
+ color: var(--muted-color, #777);
+}
+
+.sign-terms a {
+ color: var(--focus-color, #f04494);
+}
+
+.sign-footer {
+ text-align: center;
+ margin-top: 20px;
+ font-size: 14px;
+ color: var(--muted-color, #777);
+}
+
+.sign-footer a { color: var(--focus-color, #f04494); }
+
+.sign-footer-bar {
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ text-align: center;
+ padding: 10px;
+ font-size: 12px;
+ color: var(--muted-2-color, #999);
+ z-index: 1;
+ background: color-mix(in srgb, var(--main-bg-color, #fff) 80%, transparent);
+}
+
+.sign-oauth {
+ margin-top: 20px;
+}
+
+.sign-oauth__divider {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ margin-bottom: 14px;
+ font-size: 12px;
+ color: var(--muted-2-color, #999);
+}
+
+.sign-oauth__divider::before,
+.sign-oauth__divider::after {
+ content: "";
+ flex: 1;
+ height: 1px;
+ background: var(--main-border-color, rgba(50, 50, 50, 0.08));
+}
+
+@media (max-width: 480px) {
+ .sign-card { padding: 24px 20px; }
+ .sign-page { padding-top: 56px; }
+}
diff --git a/assets/js/modal-auth.js b/assets/js/modal-auth.js
index 6b7a51f6..38d050fa 100644
--- a/assets/js/modal-auth.js
+++ b/assets/js/modal-auth.js
@@ -454,7 +454,7 @@
btn.addEventListener('click', function (e) {
var form = btn.closest('form');
if (!form) return;
- var agree = form.querySelector('[name="user_agreement"]');
+ var agree = form.querySelector('[name="agree_terms"], [name="user_agreement"]');
if (agree && !agree.checked) {
e.preventDefault();
e.stopImmediatePropagation();
diff --git a/inc/bootstrap.php b/inc/bootstrap.php
index 23a0dc96..fa66e6a3 100644
--- a/inc/bootstrap.php
+++ b/inc/bootstrap.php
@@ -34,6 +34,7 @@ require_once AKSRT_DIR . '/inc/helpers/aksrt-comments.php';
require_once AKSRT_DIR . '/inc/helpers/aksrt-forum.php';
require_once AKSRT_DIR . '/inc/helpers/aksrt-slider.php';
require_once AKSRT_DIR . '/inc/helpers/aksrt-vip.php';
+require_once AKSRT_DIR . '/inc/helpers/aksrt-auth-ui.php';
require_once AKSRT_DIR . '/inc/helpers/aksrt-i18n-switch.php';
require_once AKSRT_DIR . '/inc/helpers/aksrt-posts-renderer.php';
require_once AKSRT_DIR . '/inc/helpers/aksrt-resource.php';
diff --git a/inc/classes/scripts-traits/trait-aksrt-scripts-part-1b.php b/inc/classes/scripts-traits/trait-aksrt-scripts-part-1b.php
index 95273606..6de49d00 100644
--- a/inc/classes/scripts-traits/trait-aksrt-scripts-part-1b.php
+++ b/inc/classes/scripts-traits/trait-aksrt-scripts-part-1b.php
@@ -532,6 +532,16 @@ trait AKSRT_Scripts_Part_1b {
? (string) filemtime(get_template_directory() . '/assets/css/routes/auth.css')
: $version
);
+
+ $sign_css = get_template_directory() . '/assets/css/routes/sign.css';
+ if (file_exists($sign_css)) {
+ wp_enqueue_style(
+ 'aksrt-route-sign',
+ $base_uri . '/assets/css/routes/sign.css',
+ ['aksrt-tokens'],
+ (string) filemtime($sign_css)
+ );
+ }
// 手机号注册/登录 + SMS 倒计时 + 人机验证联动
$sign_js_path = get_template_directory() . '/assets/js/sign-register.js';
if (file_exists($sign_js_path)) {
diff --git a/inc/classes/settings/trait-aksrt-settings-auth-reader.php b/inc/classes/settings/trait-aksrt-settings-auth-reader.php
index 772f2f16..50a26bd8 100644
--- a/inc/classes/settings/trait-aksrt-settings-auth-reader.php
+++ b/inc/classes/settings/trait-aksrt-settings-auth-reader.php
@@ -208,4 +208,13 @@ trait AKSRT_Settings_Auth_Reader {
return ['type' => $type, 'domains' => $domains];
}
+
+ /** 用户协议前台配置(enabled / required / page) */
+ public static function user_agreement_settings(): array {
+ return [
+ 'enabled' => !isset(self::get_all()['user_agreement_s']) || !empty(self::get_value('user_agreement_s', true)),
+ 'required' => !isset(self::get_all()['user_agreement_check']) || !empty(self::get_value('user_agreement_check', true)),
+ 'page' => trim((string) self::get_value('user_agreement_page', '')),
+ ];
+ }
}
diff --git a/inc/helpers/aksrt-auth-ui.php b/inc/helpers/aksrt-auth-ui.php
new file mode 100644
index 00000000..75b7344e
--- /dev/null
+++ b/inc/helpers/aksrt-auth-ui.php
@@ -0,0 +1,81 @@
+用户协议', 'aksrt'),
+ esc_url($url)
+ );
+ } else {
+ $label_html = esc_html__('我已阅读并同意用户协议', 'aksrt');
+ }
+
+ return [
+ 'enabled' => $enabled,
+ 'required' => $required,
+ 'label_html' => $label_html,
+ 'field_name' => 'agree_terms',
+ ];
+ }
+}
+
+if (!function_exists('aksrt_get_auth_sign_logo_html')) {
+ /**
+ * Shared logo block for full-page sign shell.
+ */
+ function aksrt_get_auth_sign_logo_html(): string {
+ $logo_url = class_exists('AKSRT_Settings') ? AKSRT_Settings::user_logo_url() : '';
+ $home = home_url('/');
+ $name = get_bloginfo('name');
+ if ($logo_url) {
+ return sprintf(
+ '',
+ esc_url($home),
+ esc_url($logo_url),
+ esc_attr($name)
+ );
+ }
+ return sprintf(
+ '%s',
+ esc_url($home),
+ esc_html(mb_substr((string) $name, 0, 2))
+ );
+ }
+}
diff --git a/templates/pages/page-bind-account.php b/templates/pages/page-bind-account.php
index f671e162..33909f9f 100644
--- a/templates/pages/page-bind-account.php
+++ b/templates/pages/page-bind-account.php
@@ -55,6 +55,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['log'], $_POST['pwd'])
}
}
+remove_action('wp_footer', 'aksrt_render_footer_tabbar', 20);
+remove_action('wp_footer', 'aksrt_render_float_buttons', 30);
+add_filter('body_class', static function ($classes) {
+ $classes[] = 'page-template-user-sign';
+ return $classes;
+});
get_header();
?>
@@ -65,7 +71,7 @@ get_header();
' . esc_html($provider_name) . ''); ?>
@@ -120,7 +126,7 @@ get_header();
-
diff --git a/templates/pages/page-reset-password.php b/templates/pages/page-reset-password.php
index 77d0d8f8..4e485c09 100644
--- a/templates/pages/page-reset-password.php
+++ b/templates/pages/page-reset-password.php
@@ -54,13 +54,19 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['aksrt_action']) && $_
}
}
+remove_action('wp_footer', 'aksrt_render_footer_tabbar', 20);
+remove_action('wp_footer', 'aksrt_render_float_buttons', 30);
+add_filter('body_class', static function ($classes) {
+ $classes[] = 'page-template-user-sign';
+ return $classes;
+});
get_header();
?>