/* 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: 240px;
}
#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 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: 210px;
    }
}
@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;
    }
}

/* ===== What I'm Doing Now (i18n cards) ===== */
.now-section {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 96px;
    z-index: 2;
    text-align: center;
    padding: 0 16px;
}
.now-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
    /* margin: 0 0 14px; */
}
.now-cards {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}
.now-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 280px;
    max-width: 420px;
    padding: 14px 18px;
    border-radius: 14px;
    text-align: left;
    text-decoration: none;
    color: #fff;
    background: rgba(8, 12, 20, .42);
    border: 1px solid rgba(255, 255, 255, .20);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.now-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .45);
    background: rgba(12, 18, 30, .55);
}
.now-emoji {
    font-size: 30px;
    line-height: 1;
    flex: none;
}
.now-body {
    min-width: 0;
}
.now-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .02em;
}
.now-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .82);
    margin-top: 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.now-action {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: #9ecbff;
    letter-spacing: .04em;
}
.now-action::after {
    content: " →";
}
@media screen and (max-width: 767px) {
    .now-section {
        bottom: 74px;
    }
    .now-card {
        min-width: 0;
        width: 100%;
        max-width: 420px;
    }
}

/* ===== Today's Poetry (紧贴 footer 上方的一行文本 + github icon) ===== */
.poetry-section {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 64px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, .82);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}
.poetry-label {
    letter-spacing: .12em;
    font-weight: 500;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
}
.poetry-sep {
    opacity: .5;
}
.poetry-link {
    color: #9ecbff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .02em;
    transition: color .18s ease;
}
.poetry-link:hover {
    color: #c5e1ff;
    text-decoration: underline;
}
.poetry-link[aria-disabled="true"] {
    color: rgba(255, 255, 255, .55);
    pointer-events: none;
    cursor: default;
    font-weight: 500;
}
@media screen and (max-width: 767px) {
    .poetry-section {
        bottom: 52px;
        font-size: 12px;
        gap: 8px;
    }
}
