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

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.profile {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

.profile h1 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.bio {
    color: #666;
    margin-top: 10px;
    font-size: 16px;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 0 auto;
}

.social-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-item:hover {
    transform: translateY(-3px);
}

/* Platform specific styles */
.social-item.blog {
    background: linear-gradient(135deg, rgba(33, 117, 155, 0.95), rgba(21, 92, 123, 0.95));
    color: white;
}

.social-item.twitter {
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.95), rgba(26, 145, 218, 0.95));
    color: white;
}

.social-item.bilibili {
    background: linear-gradient(135deg, rgba(251, 114, 153, 0.95), rgba(252, 139, 171, 0.95));
    color: white;
}

.social-item.douyin {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(51, 51, 51, 0.95));
    color: white;
}

.social-item.wechat {
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.95), rgba(6, 173, 85, 0.95));
    color: white;
}

.social-item.telegram {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.95), rgba(0, 159, 238, 0.95));
    color: white;
}

.social-item.youtube {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.95), rgba(204, 0, 0, 0.95));
    color: white;
}

.social-item.weibo {
    background: linear-gradient(135deg, rgba(230, 22, 45, 0.85), rgba(230, 22, 45, 0.85));
    color: white;
}

.icon {
    font-size: 28px;
    margin-right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.social-item:hover .icon {
    transform: scale(1.1);
}

.text {
    flex: 1;
}

.text h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.arrow {
    color: #999;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.social-item:hover .arrow {
    transform: translateX(4px);
    color: rgba(255, 255, 255, 0.9);
}

#wechat-item {
    position: relative;
}

.btc-address {
    margin-top: 15px;
    padding: 8px 15px;
    background: rgba(247, 147, 26, 0.1);
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.btc-address span {
    color: #f7931a;
    font-size: 16px;
    margin-right: 2px;
}

.btc-address:hover {
    background: rgba(247, 147, 26, 0.2);
}

.btc-qr {
    position: absolute;
    right: 50%;
    bottom: calc(100% + 15px);
    transform: translateX(50%);
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.btc-address:hover .btc-qr {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

.btc-qr img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.copy-success {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -25px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.copy-success.show {
    opacity: 1;
    visibility: visible;
}

#wechat-item .qr-code {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    .btc-qr img {
        width: 120px;
        height: 120px;
        object-fit: contain;
    }
}

#wechat-item:hover .qr-code {
    opacity: 1;
    visibility: visible;
    right: 90px;
}

.weibo {
    background: linear-gradient(135deg, rgba(230, 22, 45, 0.95), rgba(230, 22, 45, 0.95));
}

.projects {
    margin-top: 40px;
    padding: 20px;
}

.section-title {
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.project-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.project-image {
    width: 100%;
    height: 90px;
    overflow: hidden;
}

.project-info {
    padding: 12px;
}

.project-info h3 {
    color: white;
    font-size: 16px;
    margin: 0 0 6px 0;
}

.project-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.project-tag {
    padding: 3px 10px;
    background: #f0f0f0;
    color: #666;
    font-size: 11px;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 16px;
    background: linear-gradient(135deg, rgba(33, 117, 155, 0.95), rgba(21, 92, 123, 0.95));
}

.project-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: white;
    text-decoration: none;
}

.project-info p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.project-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.project-item:hover .project-tag {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.comments {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.comments .section-title {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

#tcomment {
    color: white;
}

@media screen and (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }

    .social-item {
        padding: 12px;
    }

    .social-item .text h3 {
        font-size: 0.9em;
    }

    .social-item .text p {
        font-size: 0.8em;
    }

    .icon {
        font-size: 20px;
        width: 32px;
        height: 32px;
        margin-right: 12px;
    }

    .project-item {
        padding: 12px;
    }

    .project-info h3 {
        font-size: 0.95em;
    }

    .project-info p {
        font-size: 0.85em;
    }

    .project-tag {
        font-size: 0.75em;
        padding: 3px 8px;
    }

    .bio {
        font-size: 0.9em;
        margin: 8px 0;
    }

    h1 {
        font-size: 1.5em;
    }

    .section-title {
        font-size: 1.3em;
        margin: 15px 0;
    }
}

.copyright {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.copyright a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #fff;
}