123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>明律通 - AI法律顾问</title>
- <!-- 引入国内CDN资源 -->
- <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
- <style>
- body {
- background: linear-gradient(135deg, #F8F9FF, #E6F7FF); /* 浅蓝到白色的渐变 */
- background-size: cover;
- background-repeat: no-repeat;
- line-height: 1.6;
- max-width: 100vw;
- overflow-x: hidden;
- }
- :root {
- --primary: #3A5FE5;
- --secondary: #00C4A1;
- --danger: #FF4D4F;
- --bg: #F8F9FF;
- --text: #2D3748;
- --card: #FFFFFF;
- }
-
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
- }
-
- .container {
- width: 100%;
- max-width: 480px;
- margin: 0 auto;
- padding: 15px;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- }
-
- /* 顶部导航 */
- .header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 10px 0;
- margin-bottom: 15px;
- }
-
- .logo {
- font-weight: bold;
- font-size: 20px;
- color: var(--primary);
- display: flex;
- align-items: center;
- }
-
- .logo i {
- margin-right: 8px;
- color: var(--secondary);
- }
-
- .user-avatar {
- width: 36px;
- height: 36px;
- border-radius: 50%;
- background-color: var(--primary);
- display: flex;
- align-items: center;
- justify-content: center;
- color: white;
- }
-
- /* 搜索框 */
- .search-bar {
- display: flex;
- background: white;
- border-radius: 24px;
- padding: 10px 15px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
- margin-bottom: 20px;
- }
-
- .search-input {
- flex: 1;
- border: none;
- outline: none;
- padding: 5px;
- font-size: 16px;
- }
-
- .search-btn {
- background: none;
- border: none;
- color: var(--primary);
- font-size: 18px;
- }
-
- /* 服务入口 */
- .services {
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- margin: 20px 0;
- }
-
- .service-card {
- width: 23%;
- aspect-ratio: 1;
- background: white;
- border-radius: 12px;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
- margin-bottom: 10px;
- transition: transform 0.3s;
- }
-
- .service-card:active {
- transform: scale(0.95);
- }
-
- .service-icon {
- font-size: 24px;
- margin-bottom: 8px;
- color: var(--primary);
- }
-
- .service-name {
- font-size: 12px;
- color: var(--text);
- }
-
- /* 热点推荐 */
- .section-title {
- font-size: 18px;
- font-weight: bold;
- margin: 15px 0;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
-
- .section-title a {
- font-size: 14px;
- font-weight: normal;
- color: var(--primary);
- text-decoration: none;
- }
-
- .hot-topics {
- display: flex;
- overflow-x: auto;
- gap: 10px;
- padding-bottom: 10px;
- }
-
- .topic-card {
- min-width: 200px;
- height: 100px;
- border-radius: 12px;
- background: linear-gradient(135deg, var(--primary), #6A8EFF);
- color: white;
- padding: 15px;
- display: flex;
- flex-direction: column;
- justify-content: flex-end;
- position: relative;
- overflow: hidden;
- }
-
- .topic-card::before {
- content: "";
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" opacity="0.1"><text x="10" y="20" font-family="Arial" font-size="10">《民法典》</text></svg>');
- }
-
- .topic-title {
- font-weight: bold;
- margin-bottom: 5px;
- position: relative;
- }
-
- .topic-desc {
- font-size: 12px;
- opacity: 0.9;
- position: relative;
- }
-
- /* 动态通知 */
- .notice-bar {
- background: white;
- border-radius: 12px;
- padding: 12px 15px;
- margin: 15px 0;
- display: flex;
- align-items: center;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
- }
-
- .notice-icon {
- color: var(--danger);
- margin-right: 10px;
- font-size: 18px;
- }
-
- .notice-content {
- flex: 1;
- font-size: 14px;
- }
-
- .notice-close {
- color: #999;
- font-size: 14px;
- }
- .latest-news {
- margin: 20px 0;
- }
- .latest-news h3 {
- font-size: 20px;
- margin-bottom: 20px;
- }
- .news-card {
- padding: 15px;
- background: white;
- border-radius: 12px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
- margin-bottom: 15px;
- }
- .news-card p {
- font-size: 14px;
- color: var(--text);
- margin: 8px 0;
- }
-
- /* 底部导航 */
- .tab-bar {
- display: flex;
- background: white;
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- max-width: 480px;
- margin: 0 auto;
- box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
- padding: 8px 0;
- }
-
- .tab-item {
- flex: 1;
- display: flex;
- flex-direction: column;
- align-items: center;
- color: #999;
- text-decoration: none;
- font-size: 12px;
- }
-
- .tab-item.active {
- color: var(--primary);
- }
-
- .tab-icon {
- font-size: 20px;
- margin-bottom: 3px;
- }
-
- /* 咨询页面样式 */
- .chat-container {
- flex: 1;
- display: flex;
- flex-direction: column;
- padding-bottom: 60px;
- }
-
- .chat-messages {
- flex: 1;
- overflow-y: auto;
- padding: 15px;
- }
-
- .message {
- max-width: 80%;
- margin-bottom: 15px;
- position: relative;
- }
-
- .user-message {
- align-self: flex-end;
- background: var(--primary);
- color: white;
- border-radius: 18px 18px 0 18px;
- padding: 12px 15px;
- }
-
- .ai-message {
- align-self: flex-start;
- background: white;
- border-radius: 18px 18px 18px 0;
- padding: 12px 15px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
- }
-
- .law-ref {
- background: #E6F7FF;
- border-left: 3px solid var(--primary);
- padding: 8px 12px;
- margin: 8px 0;
- border-radius: 0 8px 8px 0;
- font-size: 14px;
- }
-
- .chat-input {
- display: flex;
- padding: 10px;
- background: white;
- position: fixed;
- bottom: 60px;
- left: 0;
- right: 0;
- max-width: 480px;
- margin: 0 auto;
- box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
- }
-
- .chat-input input {
- flex: 1;
- border: 1px solid #eee;
- border-radius: 20px;
- padding: 10px 15px;
- outline: none;
- }
-
- .send-btn {
- background: var(--primary);
- color: white;
- border: none;
- width: 40px;
- height: 40px;
- border-radius: 50%;
- margin-left: 10px;
- }
-
- /* 合同审查页面 */
- .contract-report {
- padding: 15px;
- padding-bottom: 60px;
- }
-
- .risk-meter {
- height: 10px;
- background: linear-gradient(to right, #00C4A1, #FFC107, var(--danger));
- border-radius: 5px;
- margin: 15px 0;
- position: relative;
- }
-
- .risk-level {
- position: absolute;
- height: 20px;
- width: 20px;
- background: white;
- border: 3px solid var(--danger);
- border-radius: 50%;
- top: -5px;
- left: 30%;
- transform: translateX(-50%);
- }
-
- .issue-item {
- background: white;
- border-radius: 12px;
- padding: 15px;
- margin-bottom: 10px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
- }
-
- .issue-title {
- display: flex;
- align-items: center;
- margin-bottom: 8px;
- }
-
- .issue-icon {
- color: var(--danger);
- margin-right: 8px;
- }
-
- .suggestion {
- background: #F0FFF4;
- padding: 10px;
- border-radius: 8px;
- margin-top: 10px;
- font-size: 14px;
- }
-
- .suggestion del {
- color: var(--danger);
- }
-
- .suggestion ins {
- color: #00C4A1;
- text-decoration: none;
- }
-
- /* 加载动画 */
- .loading {
- display: flex;
- justify-content: center;
- padding: 20px;
- }
-
- .loading-dots {
- display: flex;
- gap: 5px;
- }
-
- .loading-dots span {
- width: 8px;
- height: 8px;
- background: var(--primary);
- border-radius: 50%;
- animation: bounce 1s infinite alternate;
- }
-
- .loading-dots span:nth-child(2) {
- animation-delay: 0.2s;
- }
-
- .loading-dots span:nth-child(3) {
- animation-delay: 0.4s;
- }
-
-
- @keyframes bounce {
- to {
- transform: translateY(-5px);
- }
- }
- </style>
- </head>
- <body>
- <div class="container" id="app">
- <!-- 首页 -->
- <div class="page" id="home-page">
- <div class="header">
- <div class="logo">
- <i class="fas fa-balance-scale"></i>
- 明律通
- </div>
- <div class="user-avatar">
- <i class="fas fa-user"></i>
- </div>
- </div>
-
- <div class="search-bar">
- <input type="text" class="search-input" placeholder="输入法律问题或上传文件">
- <button class="search-btn">
- <i class="fas fa-microphone"></i>
- </button>
- </div>
-
- <div class="services">
- <div class="service-card" onclick="showPage('chat-page')">
- <div class="service-icon">
- <i class="fas fa-comments"></i>
- </div>
- <div class="service-name">智能咨询</div>
- </div>
- <div class="service-card" onclick="showPage('contract-page')">
- <div class="service-icon">
- <i class="fas fa-file-contract"></i>
- </div>
- <div class="service-name">合同审查</div>
- </div>
- <div class="service-card">
- <div class="service-icon">
- <i class="fas fa-gavel"></i>
- </div>
- <div class="service-name">诉讼评估</div>
- </div>
- <div class="service-card">
- <div class="service-icon">
- <i class="fas fa-book"></i>
- </div>
- <div class="service-name">法律文书</div>
- </div>
- </div>
-
- <div class="section-title">
- 热点法律专题
- <a href="#">更多</a>
- </div>
-
- <div class="hot-topics">
- <div class="topic-card" style="background: linear-gradient(135deg, #687fe7, #384aeb);">
- <div class="topic-title">劳动合同纠纷</div>
- <div class="topic-desc">最新劳动法司法解释</div>
- </div>
- <div class="topic-card" style="background: linear-gradient(135deg, #00C4A1, #00E676);">
- <div class="topic-title">婚姻财产分割</div>
- <div class="topic-desc">民法典新规解读</div>
- </div>
- <div class="topic-card" style="background: linear-gradient(135deg, #FF6B6B, #FF8E8E);">
- <div class="topic-title">消费者权益</div>
- <div class="topic-desc">维权指南3.0</div>
- </div>
- </div>
-
- <div class="notice-bar">
- <div class="notice-icon">
- <i class="fas fa-exclamation-circle"></i>
- </div>
- <div class="notice-content">
- 最高人民法院发布关于审理劳动争议案件的新司法解释
- </div>
- <div class="notice-close">
- <i class="fas fa-times"></i>
- </div>
- </div>
- <div class="latest-news">
- <h3>最新动态</h3>
- <div class="news-card">
- <p><strong>2023-10-01</strong> 最高人民法院发布新司法解释</p>
- <p>关于审理劳动争议案件的最新司法解释已生效。</p>
- </div>
- <div class="news-card">
- <p><strong>2023-09-25</strong> 民法典新规解读</p>
- <p>最新民法典司法解释解读,涵盖婚姻家庭、财产分割等。</p>
- </div>
- <div class="news-card">
- <p><strong>2023-09-20</strong> 劳动合同法案例分析</p>
- <p>通过真实案例分析劳动合同中的常见法律问题。</p>
- </div>
- </div>
- </div>
-
- <!-- 智能咨询页 -->
- <div class="page" id="chat-page" style="display: none;">
- <div class="header">
- <div class="logo">
- <i class="fas fa-arrow-left" onclick="showPage('home-page')"></i>
- <span style="margin-left: 10px;">AI法律咨询</span>
- </div>
- </div>
-
- <div class="chat-container">
- <div class="chat-messages">
- <div class="message user-message">
- 公司拖欠工资怎么办?
- </div>
-
- <div class="message ai-message">
- <p>根据《劳动合同法》第38条,用人单位未及时足额支付劳动报酬的,劳动者可以解除劳动合同并要求经济补偿。</p>
-
- <div class="law-ref">
- <strong>《劳动合同法》第三十八条</strong><br>
- 用人单位有下列情形之一的,劳动者可以解除劳动合同:<br>
- (二)未及时足额支付劳动报酬的;
- </div>
-
- <p>建议步骤:</p>
- <ol>
- <li>收集工资条、银行流水等证据</li>
- <li>向当地劳动监察大队投诉</li>
- <li>申请劳动仲裁(时效1年)</li>
- </ol>
- </div>
-
- <div class="loading" id="loading" style="display: none;">
- <div class="loading-dots">
- <span></span>
- <span></span>
- <span></span>
- </div>
- </div>
- </div>
-
- <div class="chat-input">
- <input type="text" placeholder="输入您的问题...">
- <button class="send-btn">
- <i class="fas fa-paper-plane"></i>
- </button>
- </div>
- </div>
- </div>
-
- <!-- 合同审查页 -->
- <div class="page" id="contract-page" style="display: none;">
- <div class="header">
- <div class="logo">
- <i class="fas fa-arrow-left" onclick="showPage('home-page')"></i>
- <span style="margin-left: 10px;">合同审查报告</span>
- </div>
- </div>
-
- <div class="contract-report">
- <h3>劳动合同(示例)</h3>
- <p>签约方:张三 ×××科技有限公司</p>
- <p>签署日期:2023-06-15</p>
-
- <div style="margin: 20px 0;">
- <div style="display: flex; justify-content: space-between;">
- <span>风险等级</span>
- <span>中等风险</span>
- </div>
- <div class="risk-meter">
- <div class="risk-level" style="left: 65%;"></div>
- </div>
- </div>
-
- <h4>发现的问题</h4>
-
- <div class="issue-item">
- <div class="issue-title">
- <i class="fas fa-exclamation-triangle issue-icon"></i>
- <span>试用期约定过长</span>
- </div>
- <p>合同第3条约定试用期6个月,但劳动合同期限仅为1年。</p>
- <div class="suggestion">
- <strong>修改建议:</strong><br>
- <del>试用期为6个月</del> →
- <ins>试用期不超过2个月</ins><br>
- 依据《劳动合同法》第19条:劳动合同期限一年以上不满三年的,试用期不得超过二个月。
- </div>
- </div>
-
- <div class="issue-item">
- <div class="issue-title">
- <i class="fas fa-exclamation-triangle issue-icon"></i>
- <span>竞业限制条款缺失补偿金</span>
- </div>
- <p>合同第8条约定竞业限制但未明确经济补偿标准。</p>
- <div class="suggestion">
- <strong>修改建议:</strong><br>
- 在条款中补充:<ins>"竞业限制期间,甲方应按乙方离职前12个月平均工资的30%按月支付经济补偿"</ins>
- </div>
- </div>
-
- <button style="width: 100%; background: var(--primary); color: white; border: none; padding: 12px; border-radius: 8px; margin-top: 20px;">
- 生成修订版合同
- </button>
- </div>
- </div>
-
- <!-- 底部导航 -->
- <div class="tab-bar">
- <a href="#" class="tab-item active" onclick="showPage('home-page')">
- <div class="tab-icon">
- <i class="fas fa-home"></i>
- </div>
- <div>首页</div>
- </a>
- <a href="#" class="tab-item">
- <div class="tab-icon">
- <i class="fas fa-comment-dots"></i>
- </div>
- <div>咨询</div>
- </a>
- <a href="#" class="tab-item">
- <div class="tab-icon">
- <i class="fas fa-file-alt"></i>
- </div>
- <div>文书</div>
- </a>
- <a href="#" class="tab-item">
- <div class="tab-icon">
- <i class="fas fa-user"></i>
- </div>
- <div>我的</div>
- </a>
- </div>
- </div>
-
- <script>
- // 简单页面切换逻辑
- function showPage(pageId) {
- document.querySelectorAll('.page').forEach(page => {
- page.style.display = 'none';
- });
- document.getElementById(pageId).style.display = 'block';
-
- // 更新底部导航状态
- document.querySelectorAll('.tab-item').forEach(tab => {
- tab.classList.remove('active');
- });
-
- if(pageId === 'home-page') {
- document.querySelectorAll('.tab-item')[0].classList.add('active');
- }
- }
-
- // 模拟AI回复
- document.querySelector('.send-btn').addEventListener('click', function() {
- const input = document.querySelector('.chat-input input');
- if(input.value.trim() === '') return;
-
- const messages = document.querySelector('.chat-messages');
- const userMsg = document.createElement('div');
- userMsg.className = 'message user-message';
- userMsg.textContent = input.value;
- messages.appendChild(userMsg);
-
- document.getElementById('loading').style.display = 'flex';
- input.value = '';
-
- // 模拟AI思考时间
- setTimeout(() => {
- document.getElementById('loading').style.display = 'none';
-
- const aiMsg = document.createElement('div');
- aiMsg.className = 'message ai-message';
- aiMsg.innerHTML = `
- <p>您的问题涉及${Math.floor(Math.random()*3)+1}个法律要点,分析如下:</p>
- <div class="law-ref">
- <strong>相关法条</strong><br>
- 根据《民法典》第${Math.floor(Math.random()*1000)+1}条...
- </div>
- <p>建议:</p>
- <ol>
- <li>第一步建议操作</li>
- <li>第二步建议操作</li>
- </ol>
- `;
- messages.appendChild(aiMsg);
-
- // 滚动到底部
- messages.scrollTop = messages.scrollHeight;
- }, 1500);
- });
- </script>
- </body>
- </html>
|