/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: #333;
}

.container {
    position: relative;
    min-height: 100vh;
    padding: 20px;
}

/* 背景动画 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* 主容器 */
.profile-container {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 100px;
}

/* 头像和基本信息 */
.profile-header {
    text-align: center;
    margin-bottom: 32px;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
    width: 120px;
    height: 120px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: block;
    position: relative;
    z-index: 1;
}

.avatar-border {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    z-index: 0;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    outline: none;
    border: none;
}

.profile-name:focus {
    background: #333;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-bio {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 24px;
    outline: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.profile-bio:focus {
    background-color: rgba(102, 126, 234, 0.1);
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 链接区域 */
.links-section {
    margin-bottom: 32px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.section-title i {
    color: #667eea;
}

/* 主要链接 */
.main-links {
    margin-bottom: 32px;
}

.main-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.main-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.main-link i:first-child {
    font-size: 20px;
}

.main-link span {
    flex: 1;
    font-size: 16px;
}

.main-link .arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.main-link:hover .arrow {
    transform: translateX(4px);
}

/* 社交媒体链接 */
.social-links {
    margin-bottom: 32px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    background: rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 18px;
}

.social-link.weibo i {
    color: #e6162d;
}

.social-link.wechat i {
    color: #07c160;
}

.social-link.douyin i {
    color: #ff0050;
}

.social-link.bilibili i {
    color: #00a1d6;
}

.social-link.github i {
    color: #333;
}

.social-link.linkedin i {
    color: #0077b5;
}

/* 联系方式 */
.contact-links {
    margin-bottom: 32px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    background: rgba(118, 75, 162, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    background: rgba(118, 75, 162, 0.2);
    transform: translateY(-2px);
}

.contact-link i {
    font-size: 18px;
    color: #764ba2;
}

/* 自定义链接 */
.custom-links {
    margin-bottom: 32px;
}

.add-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 2px dashed #667eea;
    border-radius: 12px;
    color: #667eea;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-link-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #764ba2;
    color: #764ba2;
}

.custom-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.custom-link:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.custom-link .delete-btn {
    position: absolute;
    right: 12px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.custom-link:hover .delete-btn {
    display: flex;
}

/* 二维码区域 */
.qr-section {
    text-align: center;
    margin-bottom: 32px;
}

.qr-container {
    padding: 24px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 16px;
}

.qr-code {
    display: inline-block;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
}

.qr-text {
    font-size: 14px;
    color: #666;
}

/* 底部工具栏 */
.toolbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
}

.tool-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tool-btn i {
    font-size: 18px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* 分享模态框 */
.share-content {
    text-align: center;
}

.share-url {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.share-url input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.05);
}

.copy-btn {
    padding: 12px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #764ba2;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
}

.share-btn.wechat {
    background: rgba(7, 193, 96, 0.1);
    color: #07c160;
}

.share-btn.weibo {
    background: rgba(230, 22, 45, 0.1);
    color: #e6162d;
}

.share-btn.qq {
    background: rgba(18, 183, 245, 0.1);
    color: #12b7f5;
}

.share-btn:hover {
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .profile-container {
        padding: 24px 20px;
        margin-bottom: 120px;
    }
    
    .profile-stats {
        gap: 24px;
    }
    
    .toolbar {
        gap: 4px;
        padding: 12px;
    }
    
    .tool-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .tool-btn i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .share-btn {
        flex-direction: row;
        justify-content: center;
    }
}

/* 主题切换动画 */
.theme-transition {
    transition: all 0.5s ease;
}

/* 深色主题 */
body.dark-theme {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.dark-theme .profile-container {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dark-theme .profile-name {
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-theme .profile-bio {
    color: #bbb;
}

.dark-theme .section-title {
    color: #fff;
}

.dark-theme .social-link,
.dark-theme .contact-link,
.dark-theme .custom-link {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dark-theme .add-link-btn {
    border-color: #74b9ff;
    color: #74b9ff;
}

.dark-theme .toolbar {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dark-theme .tool-btn {
    color: #fff;
}

.dark-theme .tool-btn:hover {
    background: rgba(116, 185, 255, 0.2);
    color: #74b9ff;
} 