body {
    background: #f8f9fa;
    font-family: 'Roboto', '微軟正黑體', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    padding: 40px 32px;
    text-align: center;
    width: 350px;
    margin: 0 auto;
    transition: width 0.3s, padding 0.3s;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.profile-card h1 {
    margin: 12px 0 18px 0;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.bio-new {
    color: #555;
    font-size: 1.13rem;
    line-height: 1.85;
    text-align: justify;
    margin: 0 0 20px 0;
    font-family: 'Roboto','微軟正黑體',Arial,sans-serif;
    letter-spacing: 0.02em;
}
.bio-new a {
    color: #4361ee;
    text-decoration: underline;
    font-weight: 500;
}
.bio-new b {
    color: #2336a8;
    font-weight: 700;
}
.social-links {
    margin: 20px 0;
}
.social-links a {
    display: inline-block;
    margin: 0 10px;
    transition: transform 0.15s;
}
.social-links a:hover {
    transform: scale(1.2);
}
.social-links img,
.social-links svg {
    width: 28px;
    height: 28px;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.btn-group .btn {
    margin: 0;
}
.btn-group .btn.btn-outline {
    background: #fff;
    color: #4361ee;
    border: 2px solid #4361ee;
    transition: background 0.18s, color 0.18s;
}
.btn-group .btn.btn-outline:hover {
    background: #4361ee;
    color: #fff;
}

.btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 32px;
    background: #4361ee;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}
.btn:hover {
    background: #2336a8;
}

/* ========== 手機專用：讓卡片幾乎滿版置中 ========== */
@media (max-width: 600px) {
    .container {
        min-height: 100vh;         /* 讓 flex 能正確垂直置中 */
        align-items: center;       /* 垂直置中 */
    }
    .profile-card {
        width: 96vw;
        max-width: 96vw;
        padding: 34px 2vw 36px 2vw;
        margin: 0 auto;
        border-radius: 18px;
        box-shadow: 0 4px 18px rgba(67,97,238,0.13);
    }
    .avatar {
        width: 110px;
        height: 110px;
    }
    .profile-card h1 {
        font-size: 1.35rem;
    }
    .bio-new {
        font-size: 1.04rem;
        line-height: 1.75;
        padding: 0 2vw;
    }
    .btn {
        font-size: 1rem;
        padding: 13px 0;
        width: 92vw;
        border-radius: 16px;
    }
    .btn-group {
        flex-direction: column;
        gap: 12px;
    }
    .btn-group .btn, .btn-group .btn.btn-outline {
        width: 100%;
    }
}

/* 超小手機也滿版 */
@media (max-width: 370px) {
    .profile-card {
        width: 99vw;
        max-width: 99vw;
        padding: 14px 1vw 18px 1vw;
    }
    .avatar {
        width: 72px;
        height: 72px;
    }
    .profile-card h1 {
        font-size: 1.1rem;
    }
}