Compare commits

...

5 Commits

Author SHA1 Message Date
Flatlogic Bot
f33d58af44 报表2 2026-02-24 14:51:35 +00:00
Flatlogic Bot
0398cf54a2 Autosave: 20260224-140315 2026-02-24 14:03:15 +00:00
Flatlogic Bot
59edd04074 组员 2026-02-24 11:17:17 +00:00
Flatlogic Bot
dc05c8a9f5 Autosave: 20260224-110546 2026-02-24 11:05:46 +00:00
Flatlogic Bot
b92cd2b045 报表 2026-02-24 09:03:03 +00:00
12 changed files with 550 additions and 450 deletions

View File

@ -1,302 +1,231 @@
body {
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
color: #212529;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 14px;
margin: 0;
:root {
--primary-pink: #ff1493;
--vibrant-pink: #ff69b4;
--soft-pink: #ffb6c1;
--royal-gold: #ffd700;
--electric-blue: #00d2ff;
--neon-green: #39ff14;
--glass-bg: rgba(255, 255, 255, 0.95);
--dark-text: #2c3e50;
}
body.bg-wealth {
background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
background-attachment: fixed;
color: var(--dark-text);
font-family: 'Noto Sans SC', sans-serif;
min-height: 100vh;
}
.main-wrapper {
/* Personalized Brand Font */
.brand-personalized {
font-family: 'Ma Shan Zheng', cursive;
font-size: 2.2rem;
letter-spacing: 2px;
}
/* Glass Navbar */
.glass-nav {
background: var(--glass-bg) !important;
backdrop-filter: blur(15px);
border-bottom: 3px solid transparent;
border-image: linear-gradient(to right, var(--primary-pink), var(--royal-gold), var(--electric-blue)) 1;
}
/* Time Badge Fix - More Contrast */
.time-badge {
background: linear-gradient(135deg, var(--primary-pink), var(--vibrant-pink));
color: white;
border-radius: 50px;
padding: 8px 20px;
border: 2px solid white;
display: flex;
align-items: center;
box-shadow: 0 5px 15px rgba(255, 20, 147, 0.4);
}
.time-badge i {
color: var(--royal-gold);
}
/* Modern Gradient Cards */
.modern-card {
background: var(--glass-bg);
border-radius: 20px;
overflow: hidden;
position: relative;
z-index: 1;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modern-card::before {
content: '';
position: absolute;
top: -3px; left: -3px; right: -3px; bottom: -3px;
background: linear-gradient(135deg, var(--primary-pink), var(--royal-gold), var(--electric-blue), var(--neon-green));
background-size: 400% 400%;
z-index: -1;
border-radius: 23px;
animation: gradient-border 8s ease infinite;
}
@keyframes gradient-border {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.modern-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
/* Area sizing consistency */
.fixed-height-area {
height: 550px !important;
overflow-y: auto;
font-size: 1.15rem;
}
.result-display {
background: #ffffff;
border: 2px dashed var(--soft-pink);
border-radius: 15px;
padding: 25px;
line-height: 1.8;
color: #333;
font-weight: 600;
white-space: pre-wrap; /* Preserve line breaks */
}
/* Personalized Buttons */
.btn-personalized {
border-radius: 50px;
padding: 12px 30px;
font-weight: 800;
letter-spacing: 1px;
text-transform: uppercase;
transition: all 0.3s ease;
border: none;
position: relative;
overflow: hidden;
}
.btn-parse {
background: linear-gradient(to right, #ff1493, #ff69b4);
color: white !important;
box-shadow: 0 5px 20px rgba(255, 20, 147, 0.4);
}
.btn-parse:hover {
box-shadow: 0 10px 30px rgba(255, 20, 147, 0.6);
transform: scale(1.03);
}
.btn-clear {
background: white;
color: var(--primary-pink) !important;
border: 2px solid var(--primary-pink);
}
.btn-clear:hover {
background: #fff0f5;
transform: rotate(-2deg);
}
.btn-copy-alt {
background: linear-gradient(135deg, #ffd700, #ff8c00);
color: white !important;
}
.btn-copy-alt:hover {
filter: brightness(1.1);
transform: translateY(-2px);
}
/* Icons */
.icon-badge {
width: 50px;
height: 50px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
width: 100%;
padding: 20px;
box-sizing: border-box;
position: relative;
z-index: 1;
font-size: 1.5rem;
margin-right: 15px;
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.badge-pink { background: linear-gradient(135deg, #ff1493, #ff69b4); color: white; }
.badge-gold { background: linear-gradient(135deg, #ffd700, #daa520); color: white; }
.chat-container {
width: 100%;
max-width: 600px;
background: rgba(255, 255, 255, 0.85);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 20px;
display: flex;
flex-direction: column;
height: 85vh;
box-shadow: 0 20px 40px rgba(0,0,0,0.2);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
/* Carousel */
.hero-wrapper {
border-radius: 25px;
overflow: hidden;
}
.chat-header {
padding: 1.5rem;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
background: rgba(255, 255, 255, 0.5);
font-weight: 700;
font-size: 1.1rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 1.5rem;
display: flex;
flex-direction: column;
gap: 1.25rem;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.3);
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.5);
}
.message {
max-width: 85%;
padding: 0.85rem 1.1rem;
border-radius: 16px;
line-height: 1.5;
font-size: 0.95rem;
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
animation: fadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px) scale(0.95); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.message.visitor {
align-self: flex-end;
background: linear-gradient(135deg, #212529 0%, #343a40 100%);
color: #fff;
border-bottom-right-radius: 4px;
}
.message.bot {
align-self: flex-start;
background: #ffffff;
color: #212529;
border-bottom-left-radius: 4px;
}
.chat-input-area {
padding: 1.25rem;
background: rgba(255, 255, 255, 0.5);
border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.chat-input-area form {
display: flex;
gap: 0.75rem;
}
.chat-input-area input {
flex: 1;
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 12px;
padding: 0.75rem 1rem;
outline: none;
background: rgba(255, 255, 255, 0.9);
transition: all 0.3s ease;
}
.chat-input-area input:focus {
border-color: #23a6d5;
box-shadow: 0 0 0 3px rgba(35, 166, 213, 0.2);
}
.chat-input-area button {
background: #212529;
color: #fff;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 12px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s ease;
}
.chat-input-area button:hover {
background: #000;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
/* Background Animations */
.bg-animations {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
overflow: hidden;
pointer-events: none;
}
.blob {
position: absolute;
width: 500px;
height: 500px;
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
filter: blur(80px);
animation: move 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}
.blob-1 {
top: -10%;
left: -10%;
background: rgba(238, 119, 82, 0.4);
}
.blob-2 {
bottom: -10%;
right: -10%;
background: rgba(35, 166, 213, 0.4);
animation-delay: -7s;
width: 600px;
height: 600px;
}
.blob-3 {
top: 40%;
left: 30%;
background: rgba(231, 60, 126, 0.3);
animation-delay: -14s;
width: 450px;
height: 450px;
}
@keyframes move {
0% { transform: translate(0, 0) rotate(0deg) scale(1); }
33% { transform: translate(150px, 100px) rotate(120deg) scale(1.1); }
66% { transform: translate(-50px, 200px) rotate(240deg) scale(0.9); }
100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}
.admin-link {
font-size: 14px;
color: #fff;
text-decoration: none;
background: rgba(0, 0, 0, 0.2);
padding: 0.5rem 1rem;
border-radius: 8px;
transition: all 0.3s ease;
}
.admin-link:hover {
background: rgba(0, 0, 0, 0.4);
text-decoration: none;
}
/* Admin Styles */
.admin-container {
max-width: 900px;
margin: 3rem auto;
padding: 2.5rem;
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-radius: 24px;
border: 5px solid white;
box-shadow: 0 20px 50px rgba(0,0,0,0.15);
border: 1px solid rgba(255, 255, 255, 0.4);
position: relative;
z-index: 1;
}
.admin-container h1 {
margin-top: 0;
color: #212529;
font-weight: 800;
.hero-img {
height: 250px;
object-fit: cover;
}
.table {
width: 100%;
border-collapse: separate;
border-spacing: 0 8px;
margin-top: 1.5rem;
/* Instruction Steps */
.step-item {
background: white;
border-radius: 15px;
padding: 15px;
margin-bottom: 12px;
display: flex;
align-items: center;
border-left: 5px solid var(--electric-blue);
transition: 0.3s;
}
.table th {
background: transparent;
border: none;
padding: 1rem;
color: #6c757d;
.step-item:hover {
background: #f0faff;
transform: translateX(5px);
}
.step-digit {
background: var(--electric-blue);
color: white;
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
margin-right: 15px;
}
/* Logo Animation */
.logo-spin {
animation: spin 20s linear infinite;
border: 3px solid var(--primary-pink);
padding: 2px;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.brand-glow {
color: var(--primary-pink);
text-shadow: 0 0 15px rgba(255, 20, 147, 0.3);
}
/* Textarea Custom */
.custom-textarea {
border: none !important;
background: #fcfcfc !important;
padding: 20px !important;
font-weight: 600;
text-transform: uppercase;
font-size: 0.75rem;
letter-spacing: 1px;
}
.table td {
background: #fff;
padding: 1rem;
border: none;
}
.table tr td:first-child { border-radius: 12px 0 0 12px; }
.table tr td:last-child { border-radius: 0 12px 12px 0; }
.form-group {
margin-bottom: 1.25rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
font-size: 0.9rem;
}
.form-control {
width: 100%;
padding: 0.75rem 1rem;
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 12px;
background: #fff;
transition: all 0.3s ease;
box-sizing: border-box;
}
.form-control:focus {
outline: none;
border-color: #23a6d5;
box-shadow: 0 0 0 3px rgba(35, 166, 213, 0.1);
.custom-textarea:focus {
box-shadow: none !important;
}

View File

@ -1,39 +1,189 @@
document.addEventListener('DOMContentLoaded', () => {
const chatForm = document.getElementById('chat-form');
const chatInput = document.getElementById('chat-input');
const chatMessages = document.getElementById('chat-messages');
// Elements
const clockEl = document.getElementById('real-time-clock');
const outputEl = document.getElementById('reportOutput');
const btnCopy = document.getElementById('btnCopy');
const btnBatchParse = document.getElementById('btnBatchParse');
const btnClearBatch = document.getElementById('btnClearBatch');
const batchInput = document.getElementById('batchInput');
const toastMessage = document.getElementById('toastMessage');
const toastEl = document.getElementById('liveToast');
const toast = new bootstrap.Toast(toastEl);
const appendMessage = (text, sender) => {
const msgDiv = document.createElement('div');
msgDiv.classList.add('message', sender);
msgDiv.textContent = text;
chatMessages.appendChild(msgDiv);
chatMessages.scrollTop = chatMessages.scrollHeight;
// Initialize Real-time Clock
const updateClock = () => {
const now = new Date();
const options = {
year: 'numeric', month: '2-digit', day: '2-digit',
hour: '2-digit', minute: '2-digit', second: '2-digit',
hour12: false
};
const formatted = now.toLocaleString('zh-CN', options).replace(/\//g, '-');
if (clockEl) clockEl.textContent = formatted;
};
setInterval(updateClock, 1000);
updateClock();
// Show Toast Helper
const showToast = (msg, isError = false) => {
toastMessage.textContent = msg;
const iconContainer = toastMessage.previousElementSibling;
if (iconContainer) {
const icon = isError ? 'fa-circle-xmark text-danger' : 'fa-circle-check text-success';
iconContainer.className = `fa-solid ${icon} me-2`;
}
toast.show();
};
chatForm.addEventListener('submit', async (e) => {
e.preventDefault();
const message = chatInput.value.trim();
if (!message) return;
// Helper to format the final report
const formatReport = (stats) => {
return `总WS数量 ${stats.totalWS}
WS今日封号 ${stats.wsBanned}
总永封WS ${stats.wsPermBanned}
总XHS数量 ${stats.totalXHS}
总SMS数量 ${stats.totalSMS}
XHS ${stats.xhs} 回复 ${stats.xhs_reply}
WS ${stats.ws} 回复 ${stats.ws_reply}
SMS ${stats.sms} 回复 ${stats.sms_reply}
总招呼量 ${stats.totalGreeting}
总回复 ${stats.totalReply}
再聊 ${stats.rechat}
引流 ${stats.traffic}
语音 ${stats.voice}`;
};
appendMessage(message, 'visitor');
chatInput.value = '';
try {
const response = await fetch('api/chat.php', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ message })
});
const data = await response.json();
// Artificial delay for realism
setTimeout(() => {
appendMessage(data.reply, 'bot');
}, 500);
} catch (error) {
console.error('Error:', error);
appendMessage("Sorry, something went wrong. Please try again.", 'bot');
// Improved Extraction Logic
const parseBatchData = () => {
const text = batchInput.value.trim();
if (!text) {
showToast('请先粘贴报表内容!', true);
return;
}
});
});
const totals = {
totalWS: 0, wsBanned: 0, wsPermBanned: 0, totalXHS: 0, totalSMS: 0,
xhs: 0, xhs_reply: 0, ws: 0, ws_reply: 0, sms: 0, sms_reply: 0,
totalGreeting: 0, totalReply: 0, rechat: 0, traffic: 0, voice: 0
};
const extractVal = (patterns, content) => {
if (!Array.isArray(patterns)) patterns = [patterns];
for (const p of patterns) {
const match = content.match(p);
if (match) {
const cleanVal = match[1].replace(/,/g, '');
return parseInt(cleanVal, 10) || 0;
}
}
return 0;
};
const extractPlatformStats = (platformLabel, content) => {
// Priority: specifically look for "Platform招呼量"
// Second: look for "Platform" if not part of "总...数量" or "...封号"
const regex = new RegExp('(总)?' + platformLabel + '(数量|今日封号|招呼量)?[^0-9]*([0-9,]+)', 'gi');
let bestMatch = null;
let m;
while ((m = regex.exec(content)) !== null) {
const isTotal = !!m[1];
const suffix = m[2] || '';
const isMeta = suffix === '数量' || suffix === '今日封号';
// We want the one that is NOT "总WS数量" and NOT "WS今日封号"
// Ideally it's "WS招呼量" or just "WS"
if (!isTotal && !isMeta) {
bestMatch = m;
if (suffix === '招呼量') break; // Best possible match found
}
}
if (!bestMatch) return { count: 0, reply: 0 };
const count = parseInt(bestMatch[3].replace(/,/g, ''), 10) || 0;
const afterMatch = content.substring(bestMatch.index + bestMatch[0].length);
// Look for "回复" after this count, but stop at next major label
const stopLabel = /(XHS|WS|SMS|总招呼量|总回复|再聊|引流|语音|总WS数量|WS今日封号|总永封WS|总XHS数量|总SMS数量)/i.exec(afterMatch);
const searchRange = afterMatch.substring(0, stopLabel ? stopLabel.index : 100);
const rMatch = searchRange.match(/回复[^0-9]*([0-9,]+)/);
return {
count: count,
reply: rMatch ? (parseInt(rMatch[1].replace(/,/g, ''), 10) || 0) : 0
};
};
// Split by "总WS数量"
const reportChunks = text.split(/(?=总WS数量)/);
reportChunks.forEach((chunk) => {
if (!chunk.trim()) return;
// Global Metrics
totals.totalWS += extractVal([/总WS数量[:\s]*([0-9,]+)/, /WS数量[:\s]*([0-9,]+)/], chunk);
totals.wsBanned += extractVal([/WS今日封号[:\s]*([0-9,]+)/, /今日封号[:\s]*([0-9,]+)/], chunk);
totals.wsPermBanned += extractVal([/总永封WS[:\s]*([0-9,]+)/, /永封WS[:\s]*([0-9,]+)/], chunk);
totals.totalXHS += extractVal([/总XHS数量[:\s]*([0-9,]+)/, /XHS数量[:\s]*([0-9,]+)/], chunk);
totals.totalSMS += extractVal([/总SMS数量[:\s]*([0-9,]+)/, /SMS数量[:\s]*([0-9,]+)/], chunk);
// Platform Specifics
const xData = extractPlatformStats('XHS', chunk);
totals.xhs += xData.count;
totals.xhs_reply += xData.reply;
const wData = extractPlatformStats('WS', chunk);
totals.ws += wData.count;
totals.ws_reply += wData.reply;
const sData = extractPlatformStats('SMS', chunk);
totals.sms += sData.count;
totals.sms_reply += sData.reply;
// Bottom Metrics
totals.rechat += extractVal(/再聊[:\s]*([0-9,]+)/, chunk);
totals.traffic += extractVal(/引流[:\s]*([0-9,]+)/, chunk);
totals.voice += extractVal(/语音[:\s]*([0-9,]+)/, chunk);
});
// Calculate Totals by Summing individual platform stats (More accurate than relying on member input)
totals.totalGreeting = totals.xhs + totals.ws + totals.sms;
totals.totalReply = totals.xhs_reply + totals.ws_reply + totals.sms_reply;
outputEl.textContent = formatReport(totals);
btnCopy.disabled = false;
showToast('报表汇总成功!');
};
// Events
if (btnBatchParse) {
btnBatchParse.addEventListener('click', () => {
showToast('解析中...');
setTimeout(parseBatchData, 400);
});
}
if (btnClearBatch) {
btnClearBatch.addEventListener('click', () => {
batchInput.value = '';
outputEl.textContent = '数据结果将在此处生成...';
btnCopy.disabled = true;
showToast('输入区域已清空');
});
}
if (btnCopy) {
btnCopy.addEventListener('click', () => {
const text = outputEl.textContent;
if (text && !text.includes('在此处生成')) {
navigator.clipboard.writeText(text).then(() => {
showToast('已复制成功!');
}).catch(err => {
showToast('复制失败', true);
});
} else {
showToast('无可复制内容', true);
}
});
}
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 KiB

293
index.php
View File

@ -1,150 +1,171 @@
<?php
declare(strict_types=1);
@ini_set('display_errors', '1');
@error_reporting(E_ALL);
@date_default_timezone_set('UTC');
@ini_set('display_errors', '0');
@date_default_timezone_set('Asia/Shanghai');
$phpVersion = PHP_VERSION;
$now = date('Y-m-d H:i:s');
$projectName = '财神组报表统计系统';
$projectDescription = '专业、高效、精准...报表数据汇总解析平台';
$logoPath = 'assets/pasted-20260224-085211-bb97e8b6.jpg';
?>
<!doctype html>
<html lang="en">
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>New Style</title>
<?php
// Read project preview data from environment
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
?>
<?php if ($projectDescription): ?>
<!-- Meta description -->
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
<!-- Open Graph meta tags -->
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
<!-- Twitter meta tags -->
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
<?php endif; ?>
<?php if ($projectImageUrl): ?>
<!-- Open Graph image -->
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
<!-- Twitter image -->
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
<?php endif; ?>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
<style>
:root {
--bg-color-start: #6a11cb;
--bg-color-end: #2575fc;
--text-color: #ffffff;
--card-bg-color: rgba(255, 255, 255, 0.01);
--card-border-color: rgba(255, 255, 255, 0.1);
}
body {
margin: 0;
font-family: 'Inter', sans-serif;
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
color: var(--text-color);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
text-align: center;
overflow: hidden;
position: relative;
}
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M-10 10L110 10M10 -10L10 110" stroke-width="1" stroke="rgba(255,255,255,0.05)"/></svg>');
animation: bg-pan 20s linear infinite;
z-index: -1;
}
@keyframes bg-pan {
0% { background-position: 0% 0%; }
100% { background-position: 100% 100%; }
}
main {
padding: 2rem;
}
.card {
background: var(--card-bg-color);
border: 1px solid var(--card-border-color);
border-radius: 16px;
padding: 2rem;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}
.loader {
margin: 1.25rem auto 1.25rem;
width: 48px;
height: 48px;
border: 3px solid rgba(255, 255, 255, 0.25);
border-top-color: #fff;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.hint {
opacity: 0.9;
}
.sr-only {
position: absolute;
width: 1px; height: 1px;
padding: 0; margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap; border: 0;
}
h1 {
font-size: 3rem;
font-weight: 700;
margin: 0 0 1rem;
letter-spacing: -1px;
}
p {
margin: 0.5rem 0;
font-size: 1.1rem;
}
code {
background: rgba(0,0,0,0.2);
padding: 2px 6px;
border-radius: 4px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
footer {
position: absolute;
bottom: 1rem;
font-size: 0.8rem;
opacity: 0.7;
}
</style>
<title><?= htmlspecialchars($projectName) ?></title>
<meta name="description" content="<?= htmlspecialchars($projectDescription) ?>" />
<link rel="icon" href="<?= $logoPath ?>" type="image/jpeg">
<!-- Bootstrap 5 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700;900&family=Ma+Shan+Zheng&display=swap" rel="stylesheet">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
</head>
<body>
<main>
<div class="card">
<h1>Analyzing your requirements and generating your website…</h1>
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
<span class="sr-only">Loading…</span>
<body class="bg-wealth">
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-light sticky-top glass-nav py-3">
<div class="container">
<a class="navbar-brand d-flex align-items-center" href="#">
<img src="<?= $logoPath ?>" alt="Logo" class="rounded-circle logo-spin me-3" width="50" height="50">
<span class="brand-personalized brand-glow"><?= htmlspecialchars($projectName) ?></span>
</a>
<div class="ms-auto">
<div class="time-badge shadow-lg">
<i class="fa-regular fa-clock me-2"></i>
<span id="real-time-clock" class="fw-bold"></span>
</div>
</div>
</div>
</nav>
<main class="container py-5">
<!-- Hero Section -->
<div class="row mb-5">
<div class="col-12">
<div id="mainCarousel" class="carousel slide hero-wrapper" data-bs-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img src="https://images.pexels.com/photos/164501/pexels-photo-164501.jpeg?auto=compress&cs=tinysrgb&w=1200" class="d-block w-100 hero-img" alt="1">
<div class="carousel-caption d-none d-md-block">
<h2 class="fw-black display-5">财神组:目标赚钱,团结奋进</h2>
</div>
</div>
<div class="carousel-item">
<img src="https://images.pexels.com/photos/259027/pexels-photo-259027.jpeg?auto=compress&cs=tinysrgb&w=1200" class="d-block w-100 hero-img" alt="2">
<div class="carousel-caption d-none d-md-block">
<h2 class="fw-black display-5">一股作气,挑战佳绩</h2>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#mainCarousel" data-bs-slide="prev">
<span class="carousel-control-prev-icon"></span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#mainCarousel" data-bs-slide="next">
<span class="carousel-control-next-icon"></span>
</button>
</div>
</div>
</div>
<div class="row g-5 align-items-stretch">
<!-- Input Section -->
<div class="col-lg-6">
<div class="card modern-card shadow-lg h-100">
<div class="card-header bg-transparent border-0 pt-4 px-4">
<div class="d-flex align-items-center">
<div class="icon-badge badge-pink">
<i class="fa-solid fa-file-import"></i>
</div>
<div>
<h4 class="fw-black mb-0" style="color: #ff1493;">数据录入区</h4>
<p class="text-muted small mb-0">粘贴多份组员报表至下方</p>
</div>
</div>
</div>
<div class="card-body px-4">
<textarea id="batchInput" class="form-control custom-textarea fixed-height-area shadow-sm" placeholder="在此粘贴报表,支持多份报表同时录入..."></textarea>
</div>
<div class="card-footer bg-transparent border-0 pb-4 px-4">
<div class="d-flex gap-3">
<button id="btnBatchParse" class="btn btn-personalized btn-parse flex-grow-1">
<i class="fa-solid fa-bolt-lightning me-2"></i>开始解析汇总
</button>
<button id="btnClearBatch" class="btn btn-personalized btn-clear">
<i class="fa-solid fa-broom me-2"></i>清空
</button>
</div>
</div>
</div>
</div>
<!-- Output Section -->
<div class="col-lg-6">
<div class="card modern-card shadow-lg h-100">
<div class="card-header bg-transparent border-0 pt-4 px-4">
<div class="d-flex align-items-center justify-content-between w-100">
<div class="d-flex align-items-center">
<div class="icon-badge badge-gold">
<i class="fa-solid fa-chart-pie"></i>
</div>
<div>
<h4 class="fw-black mb-0" style="color: #ff1493;">统计报告区</h4>
<p class="text-muted small mb-0">汇总结果实时生成</p>
</div>
</div>
<button id="btnCopy" class="btn btn-personalized btn-copy-alt" disabled>
<i class="fa-solid fa-copy me-2"></i>一键复制
</button>
</div>
</div>
<div class="card-body px-4">
<div id="reportOutput" class="result-display fixed-height-area shadow-sm">数据结果将在此处生成...</div>
<!-- Dynamic Instructions -->
<div class="mt-4">
<div class="step-item shadow-sm">
<div class="step-digit">1</div>
<span class="small fw-bold">复制组员报表并粘贴至左侧。</span>
</div>
<div class="step-item shadow-sm" style="border-left-color: #ff1493;">
<div class="step-digit" style="background: #ff1493;">2</div>
<span class="small fw-bold">点击解析,系统自动秒出结果。</span>
</div>
</div>
</div>
</div>
</div>
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
<p class="hint">This page will update automatically as the plan is implemented.</p>
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
</div>
</main>
<footer>
Page updated: <?= htmlspecialchars($now) ?> (UTC)
<footer class="py-5 bg-white mt-5 border-top border-5 border-pink">
<div class="container text-center">
<img src="<?= $logoPath ?>" alt="Footer Logo" class="rounded-circle mb-3 logo-spin" width="60" height="60">
<h5 class="brand-personalized text-pink fs-4"><?= htmlspecialchars($projectName) ?></h5>
<p class="text-muted small mb-0">&copy; <?= date('Y') ?> 专业团队 · 精准统计 · 财神领航</p>
</div>
</footer>
<!-- Toast -->
<div class="toast-container position-fixed bottom-0 end-0 p-4">
<div id="liveToast" class="toast align-items-center border-0 shadow-lg rounded-4" role="alert" aria-live="assertive" aria-atomic="true">
<div class="d-flex">
<div class="toast-body d-flex align-items-center fw-bold" style="color: #ff1493;">
<i class="fa-solid fa-circle-check me-2 text-success"></i>
<span id="toastMessage">操作成功</span>
</div>
<button type="button" class="btn-close me-3 m-auto" data-bs-dismiss="toast"></button>
</div>
</div>
</div>
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body>
</html>
</html>