/* ========================================
   小阿庆个人主页 - 分散式暗色主题
   ======================================== */

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

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0c0c0e;
    color: #b07cc6;
    position: relative;
    overflow-x: hidden;
    padding: 0;
}

/* 背景装饰 */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(129, 60, 160, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(100, 40, 140, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(129, 60, 160, 0.03) 0%, transparent 60%);
    z-index: 0;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

/* 装饰圆圈 */
.deco-circle {
    position: fixed;
    border-radius: 50%;
    opacity: 0.06;
    filter: blur(100px);
    z-index: 0;
}

.deco-1 {
    width: 500px;
    height: 500px;
    background: #813ca0;
    top: -150px;
    left: -150px;
}

.deco-2 {
    width: 450px;
    height: 450px;
    background: #64288c;
    bottom: -150px;
    right: -150px;
}

.deco-3 {
    width: 300px;
    height: 300px;
    background: #813ca0;
    top: 30%;
    right: 5%;
}

/* 装饰线条 */
.deco-line {
    position: fixed;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    height: 1px;
    width: 100%;
    z-index: 0;
}

.deco-line-1 { top: 25%; }
.deco-line-2 { top: 75%; }

/* ========== 左上角 - 头像和名字 ========== */
.header-section {
    position: fixed;
    top: 60px;
    left: 80px;
    z-index: 10;
}

.avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #12121a 0%, #1a1a2e 100%);
    border: 2px solid rgba(129, 60, 160, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #9a55c4;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.08);
    border-color: rgba(129, 60, 160, 0.45);
    box-shadow: 0 8px 30px rgba(129, 60, 160, 0.2);
}

.name-title h1 {
    font-size: 28px;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.name-title .subtitle {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* 个人简介 */
.bio-section {
    margin-top: 20px;
    max-width: 320px;
}

.bio-section p {
    font-size: 13px;
    line-height: 1.9;
    color: #666;
}

.bio-section .tags {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.bio-section .tag {
    font-size: 12px;
    color: #666;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ========== 右上角 - 快速链接 ========== */
.nav-section {
    position: fixed;
    top: 60px;
    right: 80px;
    z-index: 10;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: fit-content;
}

.quick-link i {
    font-size: 20px;
    color: #9a55c4;
    transition: all 0.3s ease;
    min-width: 24px;
    text-align: center;
}

.quick-link:hover {
    background: rgba(129, 60, 160, 0.06);
    border-color: rgba(129, 60, 160, 0.15);
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(129, 60, 160, 0.1);
    color: #d0d0d0;
}

.quick-link:hover i {
    transform: scale(1.1);
}

/* ========== 中心区域 - Mac风格一言代码框 ========== */
.quote-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.code-window {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    min-width: 650px;
    max-width: 750px;
}

.code-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(40, 40, 40, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
    box-shadow: 0 0 8px rgba(255, 95, 86, 0.3);
}

.dot.yellow {
    background: #ffbd2e;
    box-shadow: 0 0 8px rgba(255, 189, 46, 0.3);
}

.dot.green {
    background: #27ca40;
    box-shadow: 0 0 8px rgba(39, 202, 64, 0.3);
}

.code-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-right: 60px;
}

.code-body {
    padding: 30px 36px;
    min-height: 100px;
}

.code-line {
    display: flex;
    align-items: center;
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 16px;
    line-height: 1.9;
}

.code-prompt {
    color: #50fa7b;
    font-weight: 600;
    margin-right: 12px;
    user-select: none;
}

.code-content {
    color: #e0e0e0;
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 480px;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #50fa7b;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ========== 左下角 - 技术爱好 ========== */
.tech-section {
    position: fixed;
    bottom: 80px;
    left: 80px;
    z-index: 10;
}

.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tech-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    transition: all 0.3s ease;
    width: fit-content;
}

.tech-tag:hover {
    background: rgba(129, 60, 160, 0.06);
    border-color: rgba(129, 60, 160, 0.15);
    color: #b07cc6;
    transform: translateX(4px);
}

.tech-tag i {
    font-size: 15px;
    color: #777;
    transition: color 0.3s ease;
}

.tech-tag:hover i {
    color: #b07cc6;
}

/* ========== 右下角 - 社交链接 ========== */
.social-section {
    position: fixed;
    bottom: 80px;
    right: 80px;
    z-index: 10;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    color: #555;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(129, 60, 160, 0.06);
    border-color: rgba(129, 60, 160, 0.15);
    color: #9a55c4;
    transform: translateX(-4px);
}

/* ========== 底部中间 - 版权信息 ========== */
.footer {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer p {
    font-size: 11px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
}

.footer p i {
    color: #9a55c4;
    animation: heartbeat 1.5s ease infinite;
}

.footer .icp {
    font-size: 10px;
}

.footer .icp a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .icp a:hover {
    color: #9a55c4;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .header-section {
        top: 40px;
        left: 40px;
    }
    
    .bio-section {
        top: 40px;
        right: 40px;
        max-width: 260px;
    }
    
    .tech-section {
        bottom: 60px;
        left: 40px;
    }
    
    .social-section {
        bottom: 60px;
        right: 40px;
    }
    
    .quick-link {
        padding: 28px 36px;
    }
}

@media (max-width: 768px) {
    /* 平板布局 - 上下结构 */
    .header-section {
        position: relative;
        top: auto;
        left: auto;
        padding: 40px 20px 20px;
        display: flex;
        justify-content: center;
    }
    
    .bio-section {
        text-align: center;
        max-width: 100%;
        margin-top: 20px;
    }
    
    .bio-section .tags {
        justify-content: center;
    }
    
    .nav-section {
        position: relative;
        top: auto;
        right: auto;
        padding: 0 20px 30px;
    }
    
    .quick-links {
        align-items: center;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .quote-section {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .code-window {
        min-width: auto;
        max-width: 100%;
    }
    
    .tech-section {
        position: relative;
        bottom: auto;
        left: auto;
        padding: 0 20px 30px;
    }
    
    .tech-stack {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-section {
        position: relative;
        bottom: auto;
        right: auto;
        padding: 0 24px 80px;
    }
    
    .social-links {
        flex-direction: row;
        justify-content: center;
    }
    
    .footer {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .quick-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .quick-link {
        padding: 12px 16px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }
    
    .quick-link i {
        font-size: 16px;
        min-width: 20px;
    }
    
    .avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .name-title h1 {
        font-size: 22px;
    }
    
    .bio-section p {
        font-size: 12px;
    }
    
    .code-window {
        min-width: 100%;
    }
    
    .code-body {
        padding: 20px;
    }
    
    .code-content {
        font-size: 13px;
    }
}