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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #2c3440;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card {
    background: #8a8d93;
    border-radius: 20px;
    max-width: 550px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* 语言切换按钮 */
.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.lang-switch:active {
    transform: scale(0.95);
}

.lang-text {
    letter-spacing: 1px;
}

.profile-section {
    padding: 60px 40px 40px;
    text-align: center;
    background: #8a8d93;
}

.avatar-wrapper {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 58px;
}

/* 斜线装饰圆环 */
.circle-decoration {
    position: absolute;
    width: 240px;
    height: 240px;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.15) 3px,
            rgba(255, 255, 255, 0.15) 6px
        );
    z-index: 1;
}

.avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    display: block;
    border: 3px solid #8a8d93;
}

.name {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 4px;
}

.title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    font-weight: 300;
}

.contact-section {
    background: #4a5058;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-decoration: none;
    color: #ffffff;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
}

.contact-item:last-child {
    border-right: none;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.contact-item .icon {
    width: 36px;
    height: 36px;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

/* 微信二维码样式 */
.wechat-qrcode {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 15px;
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}

.contact-item:hover .wechat-qrcode {
    opacity: 1;
    visibility: visible;
}

.wechat-qrcode img {
    width: 180px;
    height: 180px;
    display: block;
}

.wechat-qrcode::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .card {
        max-width: 100%;
    }

    .profile-section {
        padding: 50px 30px 35px;
    }

    .avatar-wrapper {
        width: 200px;
        height: 200px;
        margin-bottom: 35px;
        padding-top: 48px;
    }

    .circle-decoration {
        width: 200px;
        height: 200px;
    }

    .avatar {
        width: 140px;
        height: 140px;
    }

    .name {
        font-size: 38px;
        letter-spacing: 3px;
    }

    .title {
        font-size: 13px;
    }

    .lang-switch {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 11px;
    }

    .contact-item {
        padding: 28px 15px;
    }

    .contact-item .icon {
        width: 34px;
        height: 34px;
    }

    .wechat-qrcode img {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .card {
        border-radius: 15px;
    }

    .profile-section {
        padding: 45px 25px 30px;
    }

    .avatar-wrapper {
        width: 180px;
        height: 180px;
        margin-bottom: 30px;
        padding-top: 43px;
    }

    .circle-decoration {
        width: 180px;
        height: 180px;
        background: 
            repeating-linear-gradient(
                45deg,
                transparent,
                transparent 2.5px,
                rgba(255, 255, 255, 0.15) 2.5px,
                rgba(255, 255, 255, 0.15) 5px
            );
    }

    .avatar {
        width: 120px;
        height: 120px;
    }

    .name {
        font-size: 34px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    .title {
        font-size: 12px;
    }

    .lang-switch {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
        font-size: 10px;
    }

    .contact-item {
        padding: 25px 15px;
    }

    .contact-item .icon {
        width: 30px;
        height: 30px;
    }

    .wechat-qrcode {
        margin-bottom: 12px;
        padding: 8px;
    }

    .wechat-qrcode img {
        width: 140px;
        height: 140px;
    }
}

/* 超小屏幕 */
@media (max-width: 360px) {
    .profile-section {
        padding: 40px 20px 25px;
    }

    .avatar-wrapper {
        width: 160px;
        height: 160px;
        margin-bottom: 25px;
        padding-top: 38px;
    }

    .circle-decoration {
        width: 160px;
        height: 160px;
    }

    .avatar {
        width: 105px;
        height: 105px;
    }

    .name {
        font-size: 30px;
        letter-spacing: 2px;
    }

    .lang-switch {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 10px;
    }

    .contact-item {
        padding: 22px 12px;
    }

    .contact-item .icon {
        width: 28px;
        height: 28px;
    }
}
