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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    background: 
        linear-gradient(135deg, rgba(30, 60, 114, 0.9) 0%, rgba(42, 82, 152, 0.8) 50%, rgba(102, 126, 234, 0.7) 100%),
        url(https://jsdelivr.badking.pp.ua/gh/formeai/ok-image@imavvg/ok/image/1749867098809freecompress-.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    backdrop-filter: blur(10px);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    z-index: -1;
    pointer-events: none;
}

.main-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* 左侧边栏 */
.sidebar {
    background: rgb(255 255 255 / 4%);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    height: fit-content;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.profile-section {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.avatar-decorations {
    position: absolute;
    inset: 0;
}

.decoration {
    position: absolute;
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
}

.decoration-1 {
    top: -10px;
    left: -10px;
    animation-delay: 0s;
}

.decoration-2 {
    top: 10px;
    right: -15px;
    animation-delay: 1s;
}

.decoration-3 {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 600;
}

.quote {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.9;
}

.highlight-blue {
    color: #74b9ff;
    font-weight: 600;
}

.highlight-pink {
    color: #fd79a8;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgb(255 255 255 / 4%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.location, .name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.8;
}

/* 标签部分 */
.tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 12px;
    color: #fff;
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 时间线 */
.timeline-section {
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    padding-left: 20px;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 3px;
    width: 8px;
    height: 8px;
    background: #74b9ff;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.timeline-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.timeline-date {
    font-size: 12px;
    opacity: 0.7;
}

/* 右侧内容区域 */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* GitHub 贡献统计 - 带背景框的简洁样式 */
.github-stats {
    background: rgb(255 255 255 / 4%);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stats-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 16px;
    line-height: 1.6;
}

.stats-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    min-width: 80px;
    flex-shrink: 0;
}

.stats-text {
    color: rgba(255, 255, 255, 0.95);
    flex: 1;
}

.highlight-number {
    color: #74b9ff;
    font-weight: 600;
    font-size: 1.1em;
    display: inline-block;
    margin: 0 4px;
}

/* 模糊效果 */
.blur-effect {
    filter: blur(4px);
    transition: filter 0.3s ease;
}

.blur-effect:hover {
    filter: blur(0);
}

.language-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 2px;
    font-family: 'Monaco', 'Menlo', monospace;
}

.language-tag.js {
    background: rgb(132 157 195 / 57%);
    color: #212121;
}

.language-tag.py {
    background: rgb(132 157 195 / 57%);
    color: #212121;
}

.language-tag.ts {
    background: rgb(132 157 195 / 57%);
    color: #212121;
}

.language-tag.css {
    background: rgb(132 157 195 / 57%);
    color: #212121;
}

/* 站点和项目部分 */
.sites-section, .projects-section, .skills-section {
    background: rgb(255 255 255 / 4%);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.sites-section h2, .projects-section h2, .skills-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.sites-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.site-card, .project-card {
    background: rgb(255 255 255 / 8%);
    backdrop-filter: blur(25px);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.project-link, .site-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.project-link::before, .site-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.project-link:hover::before, .site-link:hover::before {
    opacity: 1;
}

.project-link:active .project-card, .site-link:active .site-card {
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.project-link:hover .project-card, .site-link:hover .site-card {
    background: rgb(255 255 255 / 15%);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.project-link:hover .project-icon, .site-link:hover .site-icon {
    transform: scale(1.05);
}

.project-icon, .site-icon {
    transition: transform 0.3s ease;
}

.site-icon, .project-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.site-icon img, .project-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-info h3, .project-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.site-info p, .project-info p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.4;
}

/* 技能图标 */
.skills-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 15px;
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.skill-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.skill-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    body {
        backdrop-filter: blur(8px);
    }
    
    body::before {
        backdrop-filter: blur(15px);
    }
    
    .main-container {
        grid-template-columns: 280px 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .sidebar {
        padding: 20px;
        backdrop-filter: blur(20px);
    }
    
    .github-stats {
        padding: 20px;
        backdrop-filter: blur(20px);
    }
    
    .sites-section, .projects-section, .skills-section {
        backdrop-filter: blur(20px);
    }
}

@media (max-width: 768px) {
    body {
        backdrop-filter: blur(6px);
        background-attachment: scroll;
    }
    
    body::before {
        backdrop-filter: blur(12px);
    }
    
    .main-container {
        display: flex;
        flex-direction: column;
    }
    
    .sidebar {
        order: -1;
        backdrop-filter: blur(18px);
    }
    
    .content-area {
        order: 0;
    }
    
    .sites-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-icons {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 10px;
    }
    
    .skill-icon {
        width: 50px;
        height: 50px;
        backdrop-filter: blur(12px);
    }
    
    .skill-icon img {
        width: 28px;
        height: 28px;
    }
    
    .github-stats {
        padding: 18px;
        gap: 12px;
        backdrop-filter: blur(18px);
    }
    
    .sites-section, .projects-section, .skills-section {
        backdrop-filter: blur(18px);
    }
    
    .site-card, .project-card {
        backdrop-filter: blur(12px);
    }
    
    /* 移动端统计样式 */
    .stats-line {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
        font-size: 15px;
    }
    
    .stats-label {
        min-width: auto;
        font-size: 14px;
    }
    
    .language-tag {
        font-size: 11px;
        padding: 2px 5px;
        margin-right: 4px;
    }
}

@media (max-width: 480px) {
    .github-stats {
        padding: 15px;
        gap: 10px;
    }
    
    .stats-line {
        font-size: 14px;
    }
    
    .stats-label {
        font-size: 13px;
    }
    
    .highlight-number {
        font-size: 16px;
    }
    
    .language-tag {
        font-size: 10px;
        padding: 1px 4px;
    }
}

@media (max-width: 360px) {
    /* 针对更小屏幕的优化 */
    .contribution-graph {
        min-width: 320px;
    }
    
    .contribution-day {
        width: 5px;
        height: 5px;
    }
    
    .legend-color {
        width: 6px;
        height: 6px;
    }
}

.site-card:hover {
    background: none;
    transform: none;
    box-shadow: none;
}

footer {
    text-align: center;
    margin-top: 0rem;
    padding-top: 0rem;
    /* border-top: 1px solid rgb(255 255 255 / 19%); */
    font-size: 0.9rem;
    color: #ffffff6e;
}
footer a {
    color: #a8d6ff;
    text-decoration: none;
}