:root {
    --bg-color: #E6F0F9;
    --text-color: #333333;
    --text-color-dark: #FFFFFF;
}
body{
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Lato, Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0px;
}
[data-theme="dark"] {
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 0%);
    color: var(--text-color-dark);
}
a{
    text-decoration: none;
    color: var(--text-color);
}
[data-theme="dark"] a {
    color: var(--text-color-dark);
}
.lucky-title-1{
    font-family: "钉钉进步体 Regular";
    font-size: 52px;
}
.lucky-title-2{
    font-family: "钉钉进步体 Regular";
    font-size: 32px;
    background: linear-gradient(to bottom, #f92121, #ff6666);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent; 
}
.lucky-title-3{
    font-family: "钉钉进步体 Regular";
    font-size: 32px;
}
#my-comment-title{
    margin-top: 50px;
    font-family: "钉钉进步体 Regular";
    text-align: center;
}
.comment-title-1{
    font-size: 23px;
}
.comment-title-2{
    font-size: 18px;
    background: linear-gradient(to bottom, #f92121, #ff6666);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent; 
}
.comment-title-3{
    font-size: 18px;
}
#header {
    text-align: center;
}
#nav {
    position: sticky;
    top: -3px;
    width: 100%;
    height: 64px;
    margin: auto;
    background-color: #ffffff94;
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    -o-backdrop-filter: blur(10px);
    -ms-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1;
}
[data-theme="dark"] #nav {
    background: #111010bd;
}
#nav ul{
    list-style: none;
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: inherit;
    font-weight: bold;
}
#nav li {
    margin: 21px 20px;
}
#top-photo{
    position: relative;
    width: 324px;
    height: 100px;
    margin: 40px auto;
    z-index: 0;
}
#top-photo img{
    width: 324px;
    height: 100px;
    border: 1px solid #ccc;
    border-radius: 20px;
    object-fit: cover;
}
#my-lucky {
    width: 300px;
    height: 300px;
    margin: 20px auto;
}
#my-lucky-title img{
    width: 70%;
}
#my-lucky-gift.won{
    font-family: "钉钉进步体 Regular";
    width: 245px;
    border: 3px solid rgb(204, 204, 204);
    border-radius: 20px;
    padding-bottom: 20px;
    margin: 20px auto;
    background-color: ivory;
}
[data-theme="dark"] #my-lucky-gift.won {
    background: #4c4948bd;
}
#span2.won{
    line-height: 2;
}
#menu {
    height: 550px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#footer {
    font-family: "钉钉进步体 Regular";
    width: 200px;
    height: 70px;
    margin: 20px auto;
    background: #fff0;
    transition: transform 1.5s;
}
#footer.move{
    transform: translateY(290px);
}
[data-theme="dark"] #footer a{
    color: var(--text-color-dark);
}
#beian{
    display: flex;
    height: 50px;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: black;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    position: absolute;
}
.card {
    display: flex;
    flex-direction: column;
    width: 150px;
    border: 1px solid #ccc;  
    border-radius: 5px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    -ms-transition: all 0.3s;
    transition: all 0.3s;
}
.card:active {
    transform: scale(0.97);
}
.card img {
    width: 100%;
    height: auto;
    border-radius: 4px 4px 0 0;
}
.card-description {
    padding: 10px;
    background-color: white;
    overflow: hidden;
    border-radius: 0 0 4px 4px;
}
.card-description h2 {
    font-size: 20px;
    margin: 0;
    background-color: white;
}
.card-description p {
    font-size: 14px;
    margin: 10px 0 0 0;
    background-color: white;
}
[data-theme="dark"] .card-description {
    background: radial-gradient(ellipse at bottom, #101011f0 0%, #090a0f66 100%);
}
[data-theme="dark"] .card-description h2 {
    color: var(--text-color-dark);
    background-color: #090a0f00;
}
[data-theme="dark"] .card-description p {
    color: var(--text-color-dark);
    background-color: #090a0f00;
}
.chat {
    width: 300px;
    margin: 40px auto;
    word-wrap: break-word;
    background-color: #fff;
    border-radius: 20px;
}
[data-theme="dark"] .chat{
    background-color: #202020;
}
.chat > h3{
    margin: 0;
    padding: 15px 20px;
    border-radius: 20px 20px 0 0;
    font-family: '钉钉进步体 Regular';
    color: #ffffffde;
}
.chat1{
    background: linear-gradient(to right, #FF0000, #FFD700);
}
.chat2{
    background: linear-gradient(to right, #006400, #00FFFF);
}
.chat > p{
    font-family: '钉钉进步体 Regular';
    margin-top: 28px;
    padding: 0px 20px;
}