181 lines
3.2 KiB
CSS
181 lines
3.2 KiB
CSS
body {
|
|
background-color: #f2f2f2;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.id-card-container {
|
|
perspective: 1000px;
|
|
padding-top: 50px;
|
|
}
|
|
|
|
.id-card {
|
|
width: 500px;
|
|
height: 300px;
|
|
position: relative;
|
|
transform-style: preserve-3d;
|
|
transition: transform 1s;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
/* Start with front side (国徽面) visible by default */
|
|
transform: rotateY(0deg);
|
|
}
|
|
|
|
.id-card-front, .id-card-back {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
backface-visibility: hidden;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.id-card-front {
|
|
background: url('/img/2.png') no-repeat center center;
|
|
background-size: cover;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
/* Front is the 国徽面 */
|
|
transform: rotateY(0deg);
|
|
}
|
|
|
|
.id-card-back {
|
|
background: url('/img/1.png') no-repeat center center;
|
|
background-size: cover;
|
|
display: flex;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
/* Back is the personal info side */
|
|
transform: rotateY(180deg);
|
|
}
|
|
|
|
.info-section {
|
|
margin-top: 15px;
|
|
margin-left: 15px;
|
|
flex: 1;
|
|
color: #333;
|
|
font-family: "Microsoft YaHei", sans-serif;
|
|
}
|
|
|
|
.info-item {
|
|
margin-bottom: 12px;
|
|
font-size: 16px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.info-space {
|
|
margin-right: 20px;
|
|
}
|
|
|
|
.info-label {
|
|
color: #1E90FF;
|
|
display: inline-block;
|
|
text-align: justify;
|
|
text-align-last: justify;
|
|
margin-left: 5px;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.info-50 {
|
|
width: 50px;
|
|
margin-right: 20px;
|
|
}
|
|
|
|
.photo-section {
|
|
width: 120px;
|
|
height: 160px;
|
|
background-color: #f8f8f8;
|
|
border: 1px solid #ddd;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-left: 20px;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.photo-placeholder {
|
|
font-size: 14px;
|
|
color: #999;
|
|
}
|
|
|
|
.back-header {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
width: 95%;
|
|
margin: 0 auto 20px auto;
|
|
font-family:"仿宋", "宋体", "Microsoft YaHei", sans-serif;
|
|
}
|
|
|
|
.emblem {
|
|
width: 100px;
|
|
height: 100px;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
.title {
|
|
text-align: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.main-title {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
color: #333;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.sub-title {
|
|
font-size: 48px;
|
|
color: #333;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.back-footer {
|
|
width: 100%;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.footer-table {
|
|
width: 90%;
|
|
margin: 0 auto;
|
|
border-collapse: collapse;
|
|
font-size: 16px;
|
|
color: #333;
|
|
}
|
|
|
|
.footer-table th,
|
|
.footer-table td {
|
|
padding: 8px 5px;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.footer-table th {
|
|
font-weight: bold;
|
|
width: 70px;
|
|
}
|
|
|
|
.footer-table td {
|
|
text-align: left;
|
|
padding-left: 15px;
|
|
width: 0;
|
|
}
|
|
|
|
.card-number {
|
|
position: absolute;
|
|
bottom: 35px;
|
|
left: 35px;
|
|
font-size: 18px;
|
|
letter-spacing: 2px;
|
|
color: #333;
|
|
}
|
|
|
|
.toggle-btn {
|
|
margin-top: 20px;
|
|
} |