/* Reset */
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td {
    margin: 0;
    padding: 0;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
fieldset, img {
    border: 0;
}
address, caption, cite, code, dfn, em, strong, th, var {
    font-style: normal;
    font-weight: 400;
}
ol, ul {
    list-style: none;
}
caption, th {
    text-align: left;
}
h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
    font-weight: 400;
}
abbr, acronym {
    border: 0;
    font-variant: normal;
}
sup {
    vertical-align: text-top;
}
sub {
    vertical-align: text-bottom;
}
q:before, q:after {
    content: '';
}
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-size: 100%;
}
legend {
    color: #000;
}
a {
    color: #333;
    text-decoration: none;
}
a:hover {
    text-decoration: none !important;
}
.clearfix {
    clear: both;
}
.clearfix:after {
    clear: both;
    content: '';
    display: block;
    height: 0;
    visibility: hidden;
}

/* Base */
html, body {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    overflow: hidden;
}
body {
    background: #fff;
    background-size: cover;
    font: 16px/1.7 "Microsoft YaHei", arial, sans-serif;
    position: relative;
}

/* Layout */
.wrap {
    width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
.ft-copy {
    padding: 20px 0;
    font-size: 14px;
    color: white;
    text-align: center;
}

/* Icon Links */
.icon-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 999;
}
.icon-links a {
    display: inline-block;
    transition: transform 0.2s ease;
}
.icon-links a:hover {
    transform: scale(1.1);
}
.icon-links img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== Main page (index.html) ===== */
#background {
    width: 100%;
    height: 110%;
    position: absolute;
    object-fit: cover;
    left: 50%;
    transform: translateX(-50%);
}
#main {
    padding-top: 50px;
    padding-bottom: 295px;
}
#main .container {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    transform-origin: top;
}
#logo {
    height: 130px;
    width: 130px;
    margin: auto;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    background-size: cover;
    background-position: center;
}
#main .wrap {
    width: 100%;
    position: absolute;
    bottom: 60px;
    word-wrap: break-word;
    word-break: break-all;
    text-align: center;
}
#main .wrap a {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.github-corner {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    width: 72px;
    height: 72px;
}
.github-corner svg {
    fill: #fff;
    color: #FFF;
    position: absolute;
    top: 0;
    border: 0;
    right: 0;
}
.github-corner:hover svg {
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.5));
}
.github-corner .octo-arm {
    transform-origin: 130px 106px;
}
.github-corner:hover .octo-arm {
    animation: octocat-wave 560ms ease-in-out;
}
@keyframes octocat-wave {
    0%, 100% { transform: rotate(0); }
    20%, 60% { transform: rotate(-25deg); }
    40%, 80% { transform: rotate(10deg); }
}
@media (max-width: 500px) {
    .github-corner:hover .octo-arm { animation: none; }
}

/* Responsive */
@media screen and (max-width: 767px) {
    #logo {
        height: 100px;
        width: 100px;
        margin-bottom: 1rem;
    }
    #main {
        padding-top: 65px;
        padding-bottom: 131px;
    }
}
@media (max-width: 1300px) {
    .wrap {
        width: 900px;
    }
}
@media (max-width: 1000px) {
    .wrap {
        width: 800px;
    }
}
@media (max-width: 850px) {
    .wrap {
        width: 620px;
    }
}
@media screen and (max-width: 640px) {
    .wrap {
        width: 100%;
    }
}
@media screen and (max-width: 320px) {
    #main {
        padding-top: 20px;
    }
}
