* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

:root {
    --bg-color: #141414;
    --text-color: #999;
    --border-color: #fff;
    --card-border: #333;
    --tag-bg: #222;
    --hover-bg: #222;
    --hover-color: #fb5607;
    --navbar-bg: #191919;
    --navbar-border: #191919;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    touch-action: pan-y;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

.post-content li { 
    list-style: inside;
}

.post-content hr {
    border: 1px solid var(--tag-bg);
}

.container {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: left;
}

.section {
    margin-bottom: 3rem;
    padding: 12px 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #fff;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--card-border);
}

.flex {
    display: flex;
}

.gap-4 {
    gap: 16px;
}

.flex-center {
    align-items: center;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.avatar-link {
    display: block;
    line-height: 0;
}

.name {
    font-weight: normal;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
}

.name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.name a:hover {
    color: var(--hover-color);
}

.card {
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.5s ease;
    text-decoration: none;
    color: var(--text-color);
    display: block;
    border: 1px solid var(--card-border);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.card-header {
    color: var(--text-color);
    min-width: 0;
}

.card-meta {
    color: var(--text-color);
    opacity: 0.7;
    flex-shrink: 0;
}

.card-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.list-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.list-item {
    padding: 3px 0;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    transition: all 0.2s ease;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-no-border {
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-bottom: 8px;
}

.social-link {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.7;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.social-link:hover {
    color: var(--hover-color);
    opacity: 1;
}

.project-link {
    text-decoration: none;
    color: var(--text-color);
    flex: 1;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: var(--hover-color);
}

.post-header {
    margin-bottom: 32px;
}

.post-title,
h1,
h2,
h3 {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.post-title {
    margin-bottom: 8px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.6;
    font-size: 13px;
}

.post-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 32px;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    background-color: var(--tag-bg);
}

.post-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-content p {
    margin: 0;
}

.post-content h2,
.post-content h3 {
    margin-top: 16px;
}

.post-content a {
    color: var(--text-color);
    opacity: 0.9;
}

.post-content a:hover {
    opacity: 1;
}

.post-content pre,
.post-content pre.astro-code {
    display: block;
    padding: 1rem;
    overflow-x: auto;
    background-color: var(--bg-color) !important;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-size: 12px;
    color: #e1e4e8 !important;
}

.post-content code {
    margin: 0 0.25em;
    padding: 0.3em 0.6em;
    background-color: var(--card-border);
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 0;
    text-indent: 0;
}

.post-content pre code,
.post-content pre.astro-code code {
    margin: 0;
    padding: 0;
    background-color: transparent !important;
    color: var(--text-color);
}

.post-content.stack-page {
    gap: 0;
}

.stack-page h2 {
    margin-top: 24px;
    margin-bottom: 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.stack-page h2:first-child {
    margin-top: 0;
}

.stack-page h4 {
    margin: 0;
    padding: 14px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    background-color: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 8px 8px 0 0;
}

.stack-page h4 + p,
.stack-page h4 + ul {
    margin: 0 0 16px;
    padding: 14px 16px;
    background-color: #141414;
    border: 1px solid #2a2a2a;
    border-top: none;
    border-radius: 0 0 8px 8px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stack-page h4 + ul li,
.stack-page h4 + p code {
    margin: 0;
    padding: 0.3em 0.8em;
    background-color: #242424;
    color: #a0a0a0;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 0;
    border-radius: 8px;
    line-height: 1.4;
    list-style: none !important;
}

.server-page {
    gap: 0;
}

.server-map-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.server-locations {
    width: 100%;
    gap: 0;
}

.server-locations .list-item {
    padding: 8px 0;
}

.server-map-wrap {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
}

.server-map {
    width: 100%;
    height: 100%;
    display: block;
}

.server-map-dot {
    fill: #999999;
}

.server-marker-core {
    fill: #22c55e;
}

.server-marker-pulse {
    fill: #22c55e;
    opacity: 0.45;
    transform-box: fill-box;
    transform-origin: center;
    animation: server-marker-pulse 2s ease-out infinite;
}

@keyframes server-marker-pulse {
    0% {
        transform: scale(0.6);
        opacity: 0.7;
    }

    70% {
        transform: scale(2.2);
        opacity: 0;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.server-status-link {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.server-status-link:hover {
    color: var(--hover-color);
    border-color: var(--hover-color);
}

.footer {
    margin-top: 60px;
    padding-top: 20px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 1;
}

.copyright {
    font-style: normal;
    opacity: 0.7;
}
