483 lines
13 KiB
HTML
483 lines
13 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<meta name="description" content="">
|
|
<title>{$title} - 文章详情</title>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
|
|
}
|
|
|
|
body {
|
|
background-color: #f8f9fa;
|
|
color: #333;
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
padding: 0;
|
|
margin: 0;
|
|
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
|
background-attachment: fixed;
|
|
}
|
|
|
|
.container {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.header {
|
|
text-align: center;
|
|
padding: 30px 0;
|
|
margin-bottom: 30px;
|
|
background: linear-gradient(90deg, #4776E6 0%, #8E54E9 100%);
|
|
border-radius: 16px;
|
|
color: white;
|
|
box-shadow: 0 10px 30px rgba(142, 84, 233, 0.2);
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 28px;
|
|
margin-bottom: 10px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.header p {
|
|
font-size: 16px;
|
|
opacity: 0.9;
|
|
max-width: 80%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.card {
|
|
background-color: white;
|
|
border-radius: 16px;
|
|
padding: 30px;
|
|
margin-bottom: 25px;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
|
|
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
.card h2 {
|
|
color: #4776E6;
|
|
font-size: 20px;
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.card h2 i {
|
|
color: #8E54E9;
|
|
}
|
|
|
|
.content-section {
|
|
min-height: 200px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 60px 0;
|
|
color: #666;
|
|
}
|
|
|
|
.loading i {
|
|
font-size: 40px;
|
|
color: #8E54E9;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.loading p {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.error {
|
|
display: none;
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: #e74c3c;
|
|
background-color: #fdf0ee;
|
|
border-radius: 12px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.error i {
|
|
font-size: 40px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.error p {
|
|
font-size: 16px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.data-display {
|
|
display: none;
|
|
}
|
|
|
|
.content-area {
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
.content-area h1,
|
|
.content-area h2,
|
|
.content-area h3,
|
|
.content-area h4 {
|
|
margin-top: 28px;
|
|
margin-bottom: 18px;
|
|
font-weight: 700;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.content-area h1 {
|
|
font-size: 24px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 2px solid rgba(74, 144, 226, 0.2);
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.content-area h2 {
|
|
font-size: 22px;
|
|
color: #2c3e50;
|
|
position: relative;
|
|
padding-left: 15px;
|
|
}
|
|
|
|
.content-area h2::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 5px;
|
|
width: 6px;
|
|
height: calc(100% - 10px);
|
|
background: linear-gradient(to bottom, #4776E6, #8E54E9);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.content-area h3 {
|
|
font-size: 20px;
|
|
color: #34495e;
|
|
}
|
|
|
|
.content-area h4 {
|
|
font-size: 18px;
|
|
color: #4776E6;
|
|
}
|
|
|
|
.content-area p {
|
|
margin-top: 0;
|
|
margin-bottom: 22px;
|
|
line-height: 1.8;
|
|
font-size: 17px;
|
|
color: #444;
|
|
}
|
|
|
|
.content-area img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
margin: 28px auto;
|
|
border-radius: 12px;
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
|
transition: all 0.4s ease;
|
|
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.content-area img:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
|
|
}
|
|
.content-area video {
|
|
max-width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
margin: 28px auto;
|
|
border-radius: 12px;
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
|
transition: all 0.4s ease;
|
|
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
}
|
|
.content-area a {
|
|
color: #4776E6;
|
|
text-decoration: none;
|
|
border-bottom: 2px solid rgba(71, 118, 230, 0.3);
|
|
transition: all 0.2s ease;
|
|
padding-bottom: 2px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.content-area a:hover {
|
|
color: #8E54E9;
|
|
border-bottom-color: #8E54E9;
|
|
}
|
|
|
|
.content-area ul,
|
|
.content-area ol {
|
|
margin-top: 0;
|
|
margin-bottom: 22px;
|
|
padding-left: 28px;
|
|
}
|
|
|
|
.content-area li {
|
|
margin-bottom: 10px;
|
|
line-height: 1.8;
|
|
position: relative;
|
|
padding-left: 5px;
|
|
}
|
|
|
|
.content-area ul li::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: -18px;
|
|
top: 12px;
|
|
width: 8px;
|
|
height: 8px;
|
|
background: #4776E6;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.content-area ol {
|
|
counter-reset: item;
|
|
}
|
|
|
|
.content-area ol li {
|
|
counter-increment: item;
|
|
}
|
|
|
|
.content-area ol li::before {
|
|
content: counter(item) ".";
|
|
position: absolute;
|
|
left: -25px;
|
|
color: #8E54E9;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.content-area blockquote {
|
|
margin: 30px 0;
|
|
padding: 25px 30px;
|
|
background: linear-gradient(135deg, rgba(71, 118, 230, 0.05), rgba(142, 84, 233, 0.05));
|
|
border-left: 5px solid #4776E6;
|
|
color: #555;
|
|
font-style: italic;
|
|
border-radius: 0 12px 12px 0;
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
.content-area pre {
|
|
background: linear-gradient(135deg, #2c3e50, #34495e);
|
|
border-radius: 12px;
|
|
padding: 25px;
|
|
overflow: auto;
|
|
margin: 30px 0;
|
|
font-size: 15px;
|
|
line-height: 1.5;
|
|
color: #ecf0f1;
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.content-area code {
|
|
background: rgba(71, 118, 230, 0.1);
|
|
padding: 4px 10px;
|
|
border-radius: 6px;
|
|
font-size: 15px;
|
|
font-family: 'Courier New', monospace;
|
|
color: #4776E6;
|
|
}
|
|
|
|
.content-area table {
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
margin: 30px 0;
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
background: white;
|
|
}
|
|
|
|
.content-area th,
|
|
.content-area td {
|
|
padding: 18px 20px;
|
|
text-align: left;
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.content-area th {
|
|
background: linear-gradient(135deg, #4776E6, #8E54E9);
|
|
color: white;
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.content-area tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.content-area tr:hover {
|
|
background-color: rgba(71, 118, 230, 0.03);
|
|
}
|
|
|
|
.address-container {
|
|
margin-top: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
.address-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
background: linear-gradient(90deg, #4776E6 0%, #8E54E9 100%);
|
|
color: white;
|
|
padding: 16px 36px;
|
|
border-radius: 50px;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
transition: all 0.4s ease;
|
|
box-shadow: 0 10px 30px rgba(71, 118, 230, 0.3);
|
|
}
|
|
|
|
.address-link:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 15px 40px rgba(71, 118, 230, 0.4);
|
|
}
|
|
|
|
.address-link i {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.spinner {
|
|
width: 50px;
|
|
height: 50px;
|
|
border: 4px solid rgba(142, 84, 233, 0.2);
|
|
border-top: 4px solid #8E54E9;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
margin: 0 auto 15px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
.btn {
|
|
display: inline-block;
|
|
background: linear-gradient(90deg, #4776E6 0%, #8E54E9 100%);
|
|
color: white;
|
|
border: none;
|
|
padding: 14px 28px;
|
|
font-size: 16px;
|
|
border-radius: 50px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 5px 15px rgba(142, 84, 233, 0.2);
|
|
}
|
|
|
|
.btn:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 8px 20px rgba(142, 84, 233, 0.3);
|
|
}
|
|
|
|
.btn:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.footer {
|
|
text-align: center;
|
|
padding: 30px 0 20px;
|
|
color: #777;
|
|
font-size: 14px;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.container {
|
|
padding: 15px;
|
|
}
|
|
|
|
.header {
|
|
padding: 25px 15px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.card {
|
|
padding: 25px;
|
|
}
|
|
|
|
.content-area h1 {
|
|
font-size: 22px;
|
|
}
|
|
|
|
.content-area h2 {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.content-area h3 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.content-area p {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.address-link {
|
|
width: 100%;
|
|
justify-content: center;
|
|
padding: 16px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
|
|
<div class="card">
|
|
<h2><i class="fas fa-newspaper"></i> 公民身后一件事服务</h2>
|
|
<div class="content-section">
|
|
|
|
<div class="content-area" id="contentArea">
|
|
{$article.content}
|
|
</div>
|
|
|
|
<div class="address-container" id="addressContainer">
|
|
<a href="./" target="_blank" class="address-link" id="addressAnchor">
|
|
<i class="fas fa-external-link-alt"></i>
|
|
<span id="addressText">前往业务大厅</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<p>广州市殡葬服务中心 © 版权所有</p>
|
|
<p>主办单位:广州市殡葬服务中心</p>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
|
|
|
|
</script>
|
|
</body>
|
|
</html> |