-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinvitation.css
124 lines (107 loc) · 2.06 KB
/
invitation.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/* 基础样式 */
body {
font-family: Arial, sans-serif;
text-align: center;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
header {
background-color: #fff;
padding: 1rem 0;
}
.logo {
width: 120px;
margin: 1rem auto;
}
main {
padding: 1rem;
max-width: 800px;
margin: auto;
}
/* 邀请部分 */
#photo-container {
position: relative;
width: 90%;
max-width: 600px;
margin: 1rem auto;
border-radius: 0.625rem; /* 圆角边框 */
overflow: hidden;
box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}
#main-photo {
width: 100%;
height: auto;
opacity: 0.7;
transition: opacity 0.3s ease;
}
#photo-container:hover #main-photo {
opacity: 0.5;
}
#invitation-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: white;
font-size: 1.5rem;
font-weight: bold;
background-color: rgba(0, 0, 0, 0.6);
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}
button {
padding: 0.75rem 1.5rem;
font-size: 1rem;
cursor: pointer;
margin-top: 0.5rem;
border: none;
border-radius: 0.3125rem;
background-color: #007bff;
color: white;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #0056b3;
}
/* 服务详情部分 */
#service-details {
margin-top: 1rem;
background: #fff;
padding: 1rem;
border-radius: 0.5rem;
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}
#service-details h2 {
margin-bottom: 0.5rem;
}
#service-details p {
margin: 0.5rem 0;
}
#service-details a {
color: #007bff;
text-decoration: none;
}
#service-details a:hover {
text-decoration: underline;
}
/* 音乐控制 */
#music-control {
position: fixed;
bottom: 1rem;
right: 1rem;
}
#music-control button {
background: none;
border: none;
font-size: 2rem;
cursor: pointer;
color: #007bff;
}
#music-control button:hover {
color: #0056b3;
}