:root {
    --blue: #66b2fe;
    --color-main: white;
    --color-bg-main: var(--blue);
}

/* 通用代码 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a {
    text-decoration: none;
    color: inherit;
}
ul>li, ol>li {
    list-style-type: none;
}
body>* {
    min-width: 300px;
}

.box-center {
    margin: 0 auto;
}

.safe-width {
    width: 100%;
    max-width: 1200px;
    min-width: 320px;
}

@media screen and (max-width: 1200px) {
    .safe-width {
        padding: 0 10px;
    }
}

/* 头部登录 */
#nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    height: 40px;
    background-color: #eadddd;
    box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, .15);
    filter: opacity(0);
    transition: filter .1s ease-in-out .5s;
}
#nav-container:hover {
    filter: opacity(1);
    transition: filter .1s ease-in-out;
}
#nav {
    height: 100%;
    display: flex;
    justify-content: right;
    align-items: center;
}
#nav>a {
    cursor: pointer;
}
#nav>a>span:last-child {
    display: none;
}

#nav>a>span:first-child {
    display: inline;
}
#nav>a:hover>span:first-child {
    display: none;
}
#nav>a:hover>span:last-child {
    display: inline;
}

/* 关系展示 */
#header-container {
    background-color: var(--color-bg-main);
}
#header {
    height: 400px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: var(--color-main);
}
#header>div {
    max-width: 100px;
    display: flex;
    flex-direction: column;
    text-align: center;
}
#header>div:nth-child(2n+1)>span {
    margin-top: 10px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
#header>div:nth-child(2)>span>svg {
    width: 50px;
}
#header:hover>div:nth-child(2)>span>svg {
    animation: heartbeat 0.8s ease infinite;
}
#header>div>img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

@media screen and (min-width: 500px) {
    #header {
        padding: 0 50px;
    }
}

@media screen and (min-width: 700px) {
    #header {
        padding: 0 100px;
    }
}

@media screen and (min-width: 1200px) {
    #header {
        padding: 0 200px;
    }
}

@keyframes heartbeat {
    0% {
        transform: scale(1,1);
    }
    50% {
        transform: scale(1.2,1.2);
    }
    100% {
        transform: scale(1,1);
    }
}

/* 计时 */
#timer {
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-weight: 500;
    line-height: 1.8;
    color: #333333;
}
#timer>*:first-child {
    font-size: 1.2em;
    color: #666666;
}
#timer>*:last-child {
    font-size: 1.2em;
}
#timer>*:last-child>span {
    font-size: 1.5em;
}


@media screen and (min-width: 500px) {
    #timer>*:first-child {
        font-size: 1.25em;
    }
    #timer>*:last-child {
        font-size: 1.25em;
    }
    #timer>*:last-child>span {
        font-size: 2.5em;
    }
}

/* 纪念日 */
#days {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
    line-height: 1;
}
.day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 47px;
    width: 100%;
    max-width: 390px;
}
.day.add {
    justify-content: center;
    cursor: pointer;
}
.day.add:hover {
    background-color: #eeeeee;
}
.day>div:first-child {
    display: flex;
    align-items: center;
}
.day>div:first-child>i {
    font-size: 27px;
}
.day>div:first-child>div {
    margin-left: 15px;
    font-size: 20px;
}
.day>div:first-child>div>div:last-child {
    margin-top: 5px;
    display: inline-block;
    height: 20px;
    line-height: 20px;
    font-size: 14px;
}
.day>div:first-child>div>div:last-child>i {
    display: none;
    font-size: 14px;
}
.day:hover>div:first-child>div>div:last-child>i {
    margin-left: 8px;
    display: inline;
    cursor: pointer;
}
.day.edit>div:first-child>div>div:last-child>i {
    margin-left: 8px;
    display: inline;
    cursor: pointer;
}
.day>div:last-child {
    font-size: 26px;
}
.day>div:last-child>i {
    cursor: pointer;
    font-size: 26px;
}


/* 页脚 */
#footer {
    margin-top: 60px;
    width: 100%;
    position: static;
    padding: 15px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    color: gray;
}
#footer>span {
    padding: 5px 10px;
}