<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>徐州市养老机构安全等级公示牌</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f0f2f5;
padding: 20px;
}
.signboard {
width: 800px;
height: 600px; /* 4:3比例 */
background: white;
border-radius: 8px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
overflow: hidden;
position: relative;
border: 2px solid #1a5f7a;
}
.header {
background: linear-gradient(135deg, #1a5f7a 0%, #2d8cba 100%);
color: white;
text-align: center;
padding: 20px 0;
border-bottom: 3px solid #f8b400;
}
.header h1 {
font-size: 32px;
font-weight: bold;
margin-bottom: 10px;
letter-spacing: 4px;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.institution-name {
font-size: 42px;
font-weight: bold;
background: rgba(255, 255, 255, 0.15);
padding: 15px 0;
margin: 0 40px;
border-radius: 8px;
letter-spacing: 2px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.ratings-container {
display: flex;
justify-content: space-around;
padding: 10px 10px;
}
.rating-card {
width: 30%;
background: #f8f9fa;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
padding: 40px;
text-align: center;
border: 1px solid #e9ecef;
}
.rating-card:hover {
transform: translateY(-5px);
}
.rating-title {
font-size: 24px;
font-weight: bold;
color: #343a40;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid #dee2e6;
}
.rating-value {
font-size: 80px;
font-weight: bold;
height: 140px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
margin-bottom: 5px;
}
.elderly-rating .rating-value {
background: #e3f2fd;
color: #1976d2;
border: 3px solid #90caf9;
}
.fire-rating .rating-value {
background: #e8f5e9;
color: #388e3c;
border: 3px solid #a5d6a7;
}
.food-rating .rating-value {
background: #fff8e1;
color: #f57c00;
border: 3px solid #ffd54f;
}
.color-indicator {
display: flex;
justify-content: center;
margin: 30px 0 20px;
gap: 20px;
flex-wrap: wrap;
}
.color-box {
width: 22%;
height: 70px;
border-radius: 8px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 18px;
font-weight: bold;
color: white;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
position: relative;
overflow: hidden;
}
.color-box:hover {
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.color-box::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0));
}
.color-label {
font-size: 20px;
margin-bottom: 5px;
}
.color-score {
font-size: 16px;
opacity: 0.9;
}
.color-red {
background: linear-gradient(135deg, #e74c3c, #c0392b);
}
.color-orange {
background: linear-gradient(135deg, #f39c12, #d35400);
}
.color-yellow {
background: linear-gradient(135deg, #f1c40f, #f39c12);
}
.color-green {
background: linear-gradient(135deg, #2ecc71, #27ae60);
}
.footer {
background: #f1f3f5;
padding: 20px 20px;
border-top: 2px dashed #ced4da;
}
.contact-info {
display: flex;
justify-content: space-between;
margin-bottom: 5px;
}
.contact-item {
font-size: 20px;
color: #495057;
}
.contact-item strong {
color: #1a5f7a;
margin-right: 8px;
}
.supervising {
text-align: center;
font-size: 15px;
color: #495057;
padding-top: 10px;
border-top: 0px solid #dee2e6;
margin-top: 0px;
line-height: 1.8;
}
</style>
</head>
<body>
<div class="signboard">
<div class="header">
<h1>徐州市养老服务机构安全等级公示牌</h1>
<div class="institution-name">安康养老服务中心</div>
</div>
<div class="ratings-container">
<div class="rating-card elderly-rating">
<div class="rating-title">养老机构等级</div>
<div class="rating-value">3级</div>
</div>
<div class="rating-card fire-rating">
<div class="rating-title">消防安全等级</div>
<div class="rating-value">绿</div>
</div>
<div class="rating-card food-rating">
<div class="rating-title">食品安全等级</div>
<div class="rating-value">黄</div>
</div>
</div>
<div class="footer">
<div class="contact-info">
<div class="contact-item">
<strong>举报电话:</strong>0516-12345678
</div>
<div class="contact-item">
<strong>评估日期:</strong>2025年07月30日
</div>
</div>
<div class="supervising">
监制单位:徐州市民政局 徐州市消防救援支队 徐州市市场监督管理局
</div>
</div>
</div>
</body>
</html>
index.html
style.css
index.js
index.html