@charset "UTF-8";
/* CSS Document */

@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&family=Noto+Serif+TC:wght@400;700&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap");

:root {
    --light-color: #1d1d1f;
    --light-bg-color: #f5f5f7;
    --light-title-color: #333;
    --light-border-color: #d6d6d6;
    --light-link-color: #06c;

    --dark-color: #f5f5f7;
    --dark-bg-color: #1d1d1f;
    --dark-title-color: #f5f5f7;
    --dark-border-color: #444;
    --dark-link-color: #2997ff;

    --red: rgb(255, 59, 48);
}

::-webkit-scrollbar {
    display: none;
}

* {
    padding: 0;
    margin: 0;
    border: 0;
}

body {
    font-family: "PT Serif", "Georgia", "Noto Serif TC", "Noto Serif SC", Serif;
    color: var(--light-color);
    background-color: var(--light-bg-color);
    font-size: 20px;
    letter-spacing: -0.005em;
    max-width: 640px;
    padding: 10%;
    padding-top: 10%;
    margin: auto;
}

img {
    position: relative;
    height: 1em;
    top: 0.05em;
}

.color {
    width: 6px;
    height: 6px;
    position: absolute;
    top: 0px;
    background-color: #e23838;
    box-shadow: 6px 0 #f78200, 12px 0 #ffb900, 18px 0 #5ebd3e, 24px 0 #009cdf, 30px 0 #973999;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    clear: both;
    /*清除左右浮动，ul 自带左浮动*/
}

li {
    float: left;
}

li a {
    margin-right: 1em;
}

a {
    text-decoration: none;
    position: relative;
    color: inherit;
}

a::before {
    content: "";
    transform-origin: 100% 50%;
    transform: scale3d(0, 1, 1);
    transition: transform 0.3s;
    position: absolute;
    width: 100%;
    height: 1.5px;
    /*background: currentColor;*/
    background: linear-gradient(90deg,
            #e23838 0%,
            #f78200 20%,
            #ffb900 40%,
            #5ebd3e 60%,
            #009cdf 80%,
            #973999 100%);
    top: 100%;
    left: 0;
}

a:hover::before {
    transform-origin: 0% 50%;
    transform: scale3d(1, 1, 1);
}

@media (prefers-color-scheme: dark) {
    body {
        color: var(--dark-color);
        background-color: var(--dark-bg-color);
    }
}

.main p {
    line-height: 40vh;
}

/* resume.html */
.resume-body {
    margin-bottom: 5%;
}

.resume {
    table-layout: auto;
    width: 100%;
}

.resume tr {
    vertical-align: top;
}

.resume a {
    margin-right: 1em;
}

.resume .name {
    font-size: 1.2em;
    font-weight: bold;
}

.resume .title {
    font-weight: bold;
    padding-top: 1.5em;
    padding-bottom: 0.5em;
}

.resume .name a {
    color: inherit;
}

.resume .name a::before {
    content: "";
    transform-origin: 100% 50%;
    transform: scale3d(0, 1, 1);
    transition: transform 0.3s;
    position: absolute;
    width: 100%;
    height: 1.5px;
    /*background: currentColor;*/
    background: linear-gradient(90deg,
            #e23838 0%,
            #f78200 20%,
            #ffb900 40%,
            #5ebd3e 60%,
            #009cdf 80%,
            #973999 100%);
    top: 100%;
    left: 0;
}

.resume .name a:hover::before {
    transform-origin: 0% 50%;
    transform: scale3d(1, 1, 1);
}

.resume .sec-row {
    font-size: 0.9em;
}

.resume .sec-row td {
    padding-bottom: 0.3em;
}

.resume td:nth-child(2) {
    text-align: right;
}