/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根变量定义 - 时尚配色方案 */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #45b7d1;
    --success-color: #96ceb4;
    --warning-color: #feca57;
    --error-color: #ff9ff3;
    --purple: #a8e6cf;
    --pink: #ffd3a5;
    --blue: #a8d8ea;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(255, 107, 107, 0.3);
    --gradient-primary: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1);
    --gradient-accent: linear-gradient(135deg, #a8e6cf, #ffd3a5, #a8d8ea);
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

/* 基础样式 - 现代字体系统 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 动态背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(69, 183, 209, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.container {
    min-height: 100vh;
}

.main-flow {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem 100px 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* 介绍区域 - 流畅设计 */
.intro-section {
    text-align: left;
    position: relative;
    padding: 2rem 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 50vh;
}

.title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
    letter-spacing: -0.02em;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-weight: 300;
}

/* 打字机效果 */
.typing {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 0.5rem;
    min-height: 3.84rem;
    max-height: 3.84rem;
    text-align: left;
    font-weight: 400;
    line-height: 1.6;
    overflow: hidden;
    width: 100%;
    word-wrap: break-word;
    word-break: break-all;
    display: block;
    position: relative;
}

/* 社交链接 */
.links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 12px;
    white-space: nowrap;
}

.links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.links a i {
    font-size: 1.2rem;
}

.links a svg {
    width: 18px;
    height: 18px;
}

/* 各平台特定颜色 */
.github:hover { background: #333; }
.bilibili:hover { background: #fb7299; }
.douyin:hover { background: #000; }
.xiaohongshu:hover { background: #ff2442; }
.videohao:hover { background: #ff6b35; }
.wechat:hover { background: #07c160; }
.qq:hover { background: #12b7f5; }
.game:hover { background: #9b59b6; }

.linkssss {
    font-size: 0.65rem !important;
    margin-left: 0.5rem;
    font-weight: 300 !important;
}

/* 二维码弹窗 */
.qr-code-videohao,
.qr-code-wechat,
.qr-code-qq {
    position: fixed;
    right: 20px;
    bottom: 80px;
    display: none;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.qr-code-videohao img,
.qr-code-wechat img,
.qr-code-qq img {
    width: 150px;
    height: 150px;
    display: block;
    border-radius: 8px;
    object-fit: contain;
}

.tagline {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow);
}

.tag:hover::before {
    left: 100%;
}

/* 项目流式布局 */
.projects-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

/* 其他项目图标展示 */
.other-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.project-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 150px;
    position: relative;
}

.project-icon-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 107, 107, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.project-icon-item:hover .icon-wrapper {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.icon-wrapper .status-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    background: var(--bg-glass);
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.icon-wrapper .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: pulse 2s infinite;
}

.icon-wrapper .status-indicator.online .status-dot {
    background: var(--success-color);
    animation: pulse-success 2s infinite;
    box-shadow: 0 0 8px rgba(150, 206, 180, 0.5);
}

.icon-wrapper .status-indicator.offline .status-dot {
    background: var(--error-color);
    animation: pulse-error 2s infinite;
    box-shadow: 0 0 8px rgba(255, 159, 243, 0.5);
}

.icon-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.3;
}

.icon-link {
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.icon-link:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* 项目卡片样式 - 流畅布局 */
.project-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 120px;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 107, 107, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

/* 项目头部 */
.project-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
}

.project-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* 状态指示器 */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}



.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: pulse 2s infinite;
    position: relative;
    z-index: 1;
}

.status-indicator.online .status-dot {
    background: var(--success-color);
    animation: pulse-success 2s infinite;
    box-shadow: 0 0 10px rgba(150, 206, 180, 0.5);
}

.status-indicator.offline .status-dot {
    background: var(--error-color);
    animation: pulse-error 2s infinite;
    box-shadow: 0 0 10px rgba(255, 159, 243, 0.5);
}

.status-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.status-indicator.online .status-text {
    color: var(--success-color);
}

.status-indicator.offline .status-text {
    color: var(--error-color);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse-success {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

@keyframes pulse-error {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* 项目内容 */
.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    flex: 1;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

.project-details {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.detail-item i {
    width: 14px;
    color: var(--accent-color);
    font-size: 0.8rem;
}

/* 项目底部按钮 */
.project-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-connect, .btn-visit, .btn-github {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 120px;
    white-space: nowrap;
}

.btn-connect {
    background: var(--gradient-primary);
    color: white;
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-visit {
    background: var(--gradient-accent);
    color: white;
}

.btn-visit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-github {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-github:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 页脚区域 */
.footer-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #bbb;
}

.footer-content a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--bg-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-link:hover {
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link i {
    position: relative;
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-flow {
        padding: 2rem 1rem 100px 1rem;
        gap: 3rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .project-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .project-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .project-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-footer {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .other-projects {
        gap: 1.5rem;
    }
    
    .project-icon-item {
        min-width: 120px;
        padding: 1rem;
    }
    
    .footer-content {
        flex-direction: row;
        flex-wrap: nowrap;
        text-align: center;
        font-size: 12px;
        gap: 6px;
        padding: 0 8px;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .project-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .footer-content {
        font-size: 10px;
        gap: 4px;
        white-space: nowrap;
        padding: 0 6px;
        overflow: hidden;
    }
}

@media (max-width: 360px) {
    .footer-content {
        font-size: 10px;
        gap: 3px;
        padding: 0 4px;
    }
    
    .footer-content a {
        display: inline;
    }
}

/* 状态指示器右上角定位 */
.project-status-corner {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

/* 加载动画 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .status-dot {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
