@import url('navbar.css');
@import url('sidebar.css');
@import url('cursor.css');
@import url('menu.css');
@import url('https://cdn.bootcdn.net/ajax/libs/lxgw-wenkai-screen-webfont/1.7.0/style.min.css');

:root {
  --bg-primary: #f7f9fe;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --text-primary: #2c3e50;
  --text-secondary: #5a6b7d;
  --text-muted: #8a9baa;
  --border-color: rgba(200, 210, 220, 0.5);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.3);
  --accent: #2c3e50;
  --card-radius: 12px;
}

[data-theme="dark"] {
  --bg-primary: #0f0f1a;
  --bg-card: rgba(25, 25, 45, 0.8);
  --bg-card-hover: rgba(35, 35, 60, 0.9);
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0b0;
  --text-muted: #6a6a7a;
  --border-color: rgba(60, 60, 80, 0.5);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(20, 20, 40, 0.7);
  --glass-border: rgba(60, 60, 80, 0.3);
  --accent: #6c8cff;
}

*, *::before, *::after {
    box-sizing: border-box;
}
body {
    font-family: "LXGW WenKai Screen", sans-serif;
    background: var(--bg-primary);
    margin: 0;
    padding: 0;
    transition: background 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    overflow-x: hidden;
}
p, h1, h2, h3, h4, h5, h6, blockquote, th, td, .profile-bio,
.archive-card-title, .archive-card-excerpt, .card-title, .list-title, .list-excerpt,
.post-content, input, textarea {
  user-select: text;
  -webkit-user-select: text;
}
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease, background 0.3s ease;
    pointer-events: auto;
    overflow: hidden;
}
.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}
.main-content {
    display: none;
}
.main-content.show {
    display: block;
}
.progress-bar {
  position: relative;
  margin: 20px auto;
  width: 65%;
  height: 20px;
  background-color: #f3f3f3;
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #4caf50, #8bc34a, #2196F3, #9C27B0);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}
.semicircle {
    position: fixed;
    top: 10vh;
    left: 0;
    width: 40vh;
    height: 80vh;
    overflow: hidden;
    pointer-events: none;
}
.circle-roller {
    position: absolute;
    top: 0;
    left: -80vh;
    width: 80vh;
    height: 80vh;
    border-radius: 50%;
    background: #2c3e50;
    animation: rollIn 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.avatar {
    position: absolute;
    width: 26vh;
    height: 26vh;
    left: calc(50% + 20vh - 13vh);
    top: calc(50% - 13vh);
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.taichi {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    transform-origin: center center;
    z-index: 10;
}
.taichi img {
    width: 100%;
    height: 100%;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}
@keyframes rollIn {
    from {
        left: -80vh;
        transform: rotate(0deg);
    }
    to {
        left: -40vh;
        transform: rotate(360deg);
    }
}
@keyframes rollInMobile {
    from {
        top: -80vw;
        transform: rotate(0deg);
    }
    to {
        top: -40vw;
        transform: rotate(360deg);
    }
}
@media (max-width: 768px) {
    .semicircle {
        top: 0;
        left: 10vw;
        width: 80vw;
        height: 40vw;
    }
    .circle-roller {
        top: -80vw;
        left: 0;
        width: 80vw;
        height: 80vw;
        animation-name: rollInMobile;
    }
    .avatar {
        width: 26vw;
        height: 26vw;
        left: calc(50% - 13vw);
        top: calc(50% + 20vw - 13vw);
    }
    .progress-bar {
        position: fixed;
        bottom: 5vh;
        left: 17.5%;
        margin: 0;
    }
}


